1

Mainactivity restarts after returning from childActivity

view story
linux-howto

http://stackoverflow.com – Basically I'm calling a new activity (ExplorerActivity) from parent (MainActivity) Demonstration with a mix of pseudo code... public class MainActivity extends Activity { boolean isLoggedin=false; onCreate(){ Print(isLoggedin) isLoggedin=true; } public boolean onOptionsItemSelected(MenuItem item) { Intent i = new Intent(MainActivity.this, ExplorerActivity.class); startActivityForResult(i, 0); return true; } protected void onActivityResult(int requestCode, int resultCode, Intent data){ super.onActivityResult(requestCode, resultCode, data); Log.e("Teste", "Mainactivty: onAct (HowTos)