摘要:
1、获取应用程序下所有Activitypublic static ArrayList getActivities(Context ctx) { ArrayList result = new ArrayList(); Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.setPackage(ctx.getPackageName()); for (ResolveInfo info : ctx.getPackageManager().queryIntentActivities(intent,... 阅读全文