Is there any possible solution of knowing that some application is running in foreground using AlarmManager
?
Basically my question is that there is an argument importance
associated with each process like procInfos.get(i).importance==100
in android, if this variable is 100 than it means that, that application's main activity is foregrounded at the moment and if its value is 400 than it means its in the background.. So my question is can I know the change of value for this variable for any specific application using AlarmManager
in android ?