[英]What information can an Android App tell about other apps on a phone?
如果我有一个应用程序想要评估我手机上还有哪些其他应用程序并为新应用程序提供建议,我可以从手机上读取哪些信息并将其发送回我们的服务器?
试试PackageManager: http : //developer.android.com/reference/android/content/pm/PackageManager.html
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
final List pkgAppsList = getPackageManager().queryIntentActivities( mainIntent, 0);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.