Reputation: 21015
Is it possible to observe the active activity on the Application context in any way? how?
Upvotes: 0
Views: 364
Reputation: 61
An application can have only one active activity at a time, that activity is the one being displayed on the screen. Go through the the android activity life cycle to know more.
As you can see,there are various states an activity can be in. The one that is active/visible is the one in running state.
If you have started to develop an android application in an IDE like eclipse, you can see what happens behind the scene by observing the logcat. Here is a screenshot of one of my apps, u can observe which activity is being shown to the user
To know the current activity on a device i think you should probably look at the log files generated by apps like
Upvotes: 1