I tried to reproduce this, and he will not decide the parent. Did you announce it somewhere else?
In which class you use this in both actions and fragments, you can use startActivity () without the need for parent.startActivity ()
Can you post a full class?
This works for me well.
private void selectItem(int position) { switch (position) { case 0: // goto home screen Log.d(TAG, "Showing Home"); startActivity(new Intent(this, SettingsActivity.class)); break; case 1: // Show Editor Log.d(TAG, "Showing Editor"); break; default: break; } }
source share