示例#1
0
 @Override
 protected void onResume() {
   super.onResume();
   if (!TextUtils.isEmpty(bean.getSex()) && bean.getSex().equals("0")) {
     getSupportActionBar().setTitle(R.string.other_date_girl);
   }
 }
示例#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);
 }
示例#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();
 }
示例#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();
              }
            });
  }
示例#5
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   fragment.onActivityResult(requestCode, resultCode, data);
   super.onActivityResult(requestCode, resultCode, data);
 }