I added the Simple PreferenceActivity application to the application, accessible through the context menu button. I can access PreferenceActivity and everything that works there. The problem is that you are leaving PreferenceActivity with the back button. The main activity of the application appears again, but then the whole screen dims, almost the same way as a dialog box appears, or the context menu never disappeared, but no. You cannot interact with a ListActivity that is in the background without pressing the back button or menu button.
Anyone have any idea why this will happen?
Primary activity:
@Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu);
@Override public boolean onOptionsItemSelected(MenuItem item) { // Handle item selection; switch(item.getItemId()) { case R.id.refresh: refresh(); return true; case R.id.subreddits: startActivity(new Intent(this, Prefs.class)); return true; default: return super.onOptionsItemSelected(item); } }
PreferenceActivity:
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.subreddit_preferences); }
Chris source share