Example #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_regist);
   initView();
 }
Example #2
0
 @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);
  }
Example #4
0
 @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();
 }
Example #6
0
 @Override
 protected void onPause() {
   // TODO Auto-generated method stub
   super.onPause();
   UmenAnalyticsUtility.onPause(context);
 }
Example #7
0
 @Override
 protected void onInitActionBar() {
   // TODO Auto-generated method stub
   super.onInitActionBar();
   getSupportActionBar().setTitle(R.string.regeit);
 }
Example #8
0
 @Override
 public void onFinish() {
   // TODO Auto-generated method stub
   super.onFinish();
   loadingDialog.dismiss();
 }
Example #9
0
 @Override
 public void onStart() {
   // TODO Auto-generated method stub
   super.onStart();
   loadingDialog.show();
 }
Example #10
0
 @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();
 }
Example #11
0
 @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);
 }