Example #1
0
 @Override
 protected void onResume() {
   super.onResume();
   if (!TextUtils.isEmpty(bean.getSex()) && bean.getSex().equals("0")) {
     getSupportActionBar().setTitle(R.string.other_date_girl);
   }
 }
Example #2
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   ImageLoader.getInstance().stop();
   setContentView(R.layout.publish);
   getSupportActionBar().setTitle("发表");
   setListener();
   location = new GDLocation(this, this, false);
 }
Example #3
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   for (String str : fragment.getIbs()) {
     File file = new File(str);
     if (file.exists()) {
       file.delete();
     }
   }
   location.destory();
 }
Example #4
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.my_care_activity);
    final MyCareGragment friend = new MyCareGragment();
    Bundle friendB = new Bundle();
    friendB.putInt("type", 1);
    friend.setArguments(friendB);
    getSupportActionBar().setTitle("我的好友");
    getSupportFragmentManager().beginTransaction().replace(R.id.content, friend).commit();
    new Handler()
        .post(
            new Runnable() {

              @Override
              public void run() {
                friend.refresh();
              }
            });
  }
Example #5
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   fragment.onActivityResult(requestCode, resultCode, data);
   super.onActivityResult(requestCode, resultCode, data);
 }