Assume Applications Foo an Eggs are on the same Android device. It’s possible for either application to get a list of all applications on the device. Is it possible for one application to know if another application has run and for how long?
Assume Applications Foo an Eggs are on the same Android device. It’s possible for
Share
You can get a list of installed applications by using the PackageManager.
Code from here:
To see the currently running apps, you can use the ActivityManager.