Issue
Can you please explain which activity life cycle method is called when a dialog comes on the application? I'm confused whether its is calling onResume() or onPause() method.
Thanks
Solution
This answer isn't fully correct
Check other answers below for better info. it was accepted a long time ago and I can't delete it.
First you should understand the Android Lifecycle.
As you can see, onPause in called when the activity is Paused, which is when your dialog appears, and onResume after you come back to the activity, when it get focus again.
As another user suggested, you can use some Log
tags to see what is happening on the console or Toasts
to see it on the screen: How do I write outputs to the Log in Android?
Answered By - George
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.