Пример #1
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);
 }
Пример #2
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();
              }
            });
  }