Android : Passing data via Intents Assignment 1
To increment the on pause counter when moving between activities
-
When the activity is first created,the thread count is 0
-
Moving from Activity A to Activity B ,will increment the counter by 1 .The counter value is passed from Activity A to B via intent through bundle.
3.Clicking Finish B will will destroy Activity B puts Activity A on the foreground , and increments the counter by 1.
4.The Dialog is implemented as a activity. So, clicking the dialog will increment the counter by 1
- Clicking Close button of dialog will increment the counter again.