@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_regist); initView(); }
@Override protected void onInitActionBar() { // TODO Auto-generated method stub super.onInitActionBar(); ActionBar actionBar = getSupportActionBar(); actionBar.setTitle(R.string.saoyy); }
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub if (resultCode != RESULT_OK) { return; } if (requestCode == 0) { try { final String str; Uri localUri = data.getData(); String[] arrayOfString = new String[1]; arrayOfString[0] = "_data"; Cursor localCursor = getContentResolver().query(localUri, arrayOfString, null, null, null); if (localCursor == null) return; localCursor.moveToFirst(); str = localCursor.getString(localCursor.getColumnIndex(arrayOfString[0])); localCursor.close(); showModifyHead(str); } catch (Exception e) { e.printStackTrace(); } } else if (requestCode == 1) { try { String path = PhotoUtils.getPicPathFromUri(PhotoUtils.imageFileUri, this); showModifyHead(path); } catch (Exception e) { e.printStackTrace(); } } super.onActivityResult(requestCode, resultCode, data); }
@Override protected void onInitFragment() { // TODO Auto-generated method stub super.onInitFragment(); getSupportFragmentManager() .beginTransaction() .add(R.id.wrapper, ScanFragment.newInstance(0)) .commit(); }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_person_info); initView(); initData(); initFilter(); }
@Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); UmenAnalyticsUtility.onPause(context); }
@Override protected void onInitActionBar() { // TODO Auto-generated method stub super.onInitActionBar(); getSupportActionBar().setTitle(R.string.regeit); }
@Override public void onFinish() { // TODO Auto-generated method stub super.onFinish(); loadingDialog.dismiss(); }
@Override public void onStart() { // TODO Auto-generated method stub super.onStart(); loadingDialog.show(); }
@Override public void onFailure(Throwable e, JSONObject errorResponse) { // TODO Auto-generated method stub super.onFailure(e, errorResponse); Toast.makeText(context, R.string.net_erro, Toast.LENGTH_SHORT).show(); }
@Override public void onSuccess(JSONObject response) { // TODO Auto-generated method stub super.onSuccess(response); parseJson(response); }
@Override protected void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); unregisterReceiver(infoChangeReceiver); }