2016-07-26 89 views
0

我已经通过appium或APK Info app看过app activity name,但仍然令人困惑。 不能确定正确的活动名称。 请分享您的观点。如何识别启动活动名称?

+0

你究竟想要键盘名称或活动名称? – tanmeet

+0

发布活动名称 –

+0

如果你想知道哪些是当前键盘乌尔设备正在使用我可以帮助你,也如果你想要的。因为你的问题说识别键盘 – tanmeet

回答

0

使用此代码使用./aapt达姆徽章apkfilelocation 精通让每个应用

final PackageManager pm = getPackageManager(); 

     Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); 
     mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); 

     List<ResolveInfo> appList = pm.queryIntentActivities(mainIntent, 0); 
     Collections.sort(appList, new ResolveInfo.DisplayNameComparator(pm)); 

     for (ResolveInfo temp : appList) { 

      Log.v("my logs", "package and activity name = " 
        + temp.activityInfo.packageName + " " 
        + temp.activityInfo.name); 


     } 
0

的发射活动:输入” ./aapt达姆徽章../../../../ ../Desktop/Consumer.apk“