@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); } }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); }