Intent intent = new Intent();
intent.setPackage("com.hiapk.marketpho");
intent.addCategory(Intent.CATEGORY_LAUNCHER);
PackageManager pm = getPackageManager();
List<ResolveInfo> list = pm.queryIntentActivities(intent, 0);
String name = list.get(0).activityInfo.applicationInfo.loadLabel(pm)
.toString();
String uniname = string2Unicode(name);
Log.i("list===================", uniname);
这里是获取安卓市场的应用程序名,具体原因是要干什么,可以留言问我哦,哈哈~
string2Unicode 这个工具到处都有,就不写下来了