예제 #1
0
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   new Handler()
       .postDelayed(
           new Runnable() {
             public void run() {
               openOptionsMenu();
             }
           },
           100);
 }
  @Override
  public void onResume() {
    super.onResume();
    if (getActivity() == null) {
      return;
    }
    ((ApplicationActivity) parentActivity).updateActionBar();

    SharedPreferences preferences =
        ApplicationLoader.applicationContext.getSharedPreferences(
            "mainconfig", Activity.MODE_PRIVATE);
    boolean animations = preferences.getBoolean("view_animations", true);
    if (!animations) {
      firstNameField.requestFocus();
      Utilities.showKeyboard(firstNameField);
    }
  }
예제 #3
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);
 }