Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How would you count the number of activities in your android project?

My teacher asked me this question and I have no idea what the answer. I use eclipse to build my android apps and the teacher uses the command line on a mac. Are there any methods that tell me how many activites there are. Our will the manifest file tell me. Any Thoughts on this question. I'm really confused.

like image 769
user3242607 Avatar asked Dec 06 '25 19:12

user3242607


1 Answers

If you don't need to count them in the app you could use this command to print the stack:

adb shell dumpsys activity activities
like image 113
soundsofpolaris Avatar answered Dec 08 '25 09:12

soundsofpolaris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!