java - Is there a way to receive broadcast each time any activity is launched? -


for android developers

my goal saved when activity launched...

for instant there 3 activity launched during last hour, want save database.

of course launch service , check every seconds activity launched use phone battery!

thanks answers.

maybe implement application class, similar singleton method. store data within application every time call new activity.

application : http://developer.android.com/reference/android/app/application.html


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -