Answer the question
In order to leave comments, you need to log in
How to monitor the launch of another application?
I want to write a program that will track the launch of applications (Vider, Telegram, WhatsApp), but I ran into a problem :
I get a list of running applications through
ActivityManager mActivityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE)
for (ApplicationInfo packageInfo : packages) {
if((packageInfo.flags & ApplicationInfo.FLAG_SYSTEM)==1)continue;
if(packageInfo.packageName.equals("org.telegram.messenger")) continue;
// выполнить код
}
Answer the question
In order to leave comments, you need to log in
https://play.google.com/store/apps/details?id=com....
https://play.google.com/store/apps/details?id=com....
D - trust.
Love is...
Give her a password and make sure she doesn't read anything.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question