Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to develop an Android Application which finds, when an Android Application installed in the device, is opened and when the same is closed.
I couldn't find anything substantial in Developers website.

What I have tried:

An activity has lifecycle methods through which we know when an activity is created and when it is destroyed but I want to know is there any support to know when an application is started and stopped.
I mean an application could have more than one activity so activity lifecycle methods won't come in handy to determine the solution.
Posted
Updated 16-Feb-18 2:53am
v2

A couple of good reads which shall help you are this[^] and this[^]
 
Share this answer
 
 
Share this answer
 
Comments
GaneshRfromSpace 15-Feb-18 13:43pm    
What if the application has more than one activity ?
Richard MacCutchan 16-Feb-18 4:18am    
If you go to that link and read the first sentence the answer is there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900