This is a theoretical situation:
I've been thinking of ways to detect whether this other app is present on the phone (assuming it is actually run from time to time), are the following methods feasible at all?
Are there any other ways of detecting another app under these circumstances?
Use PackageManager . It has a method returning info about all the apps, installed on the system: getInstalledPackages()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.