Is there a way to vizualise the activity stack, at some moment during debug, or normal run ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get some useful information with the activity manager.
This will show you the top, bottom and size of the stack, and description may be useful. You will have to search the running tasks to find the current activity.
This has a pkgLst method that may be helpful.
Not as useful or straightforward as you were hoping for, but it might help.
Activity provides the getCallingActivity() method that you could add to logs in onPause and onResume as suggested before.
There is also
if ( isChild() ) getParent();for embedded activities.