I have an activity MainActivity from where I am opening an activity TransactionActivity but the problem happening with me is why my MainActivity's onStop() method isn't getting called only onPause() is getting called. I have seen this post on SO difference-between-onpause-and-onstop, and here in answers it is written that when some part of your activity is still visible then onStop() will not gets called the only onpause will get called but for my case as MainActivity's is completely not visible why it's onStop() is not getting called ??
Is this happening because of some Activity leak or anything which is causing my Activity to stay in memory even when it is completely not visible ??
Anyone, please enlighten me what is happening here ??
My Code for calling TransactionActivity from MainActivity
Intent i = new Intent(MainActivity.this, TransactionActivity.class);
Bundle b = new Bundle();
b.putInt("trans_type", 0);
i.putExtras(b);
startActivity(i);
overridePendingTransition(0, 0);