Gallery adapter (in fragment) misbehaves when Activity instance is destroyed with "Don't keep activities"

view story

http://stackoverflow.com – I've an activity (FragmentActivity) which instantiates a Fragment onCreate protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); MyFragment fragment = MyFragment.newInstance(rowId); // simply does new MyFragment(); getSupportFragmentManager().beginTransaction().add(android.R.id.content, fragment) .commit(); } Fragment has the layout with few imageviews and Gallery adapter. ALL runs fine until "Don't keep activities" is enabled in developer options. When enabled, the Gallery Adapter's binder is initialized and o (HowTos)