Get Application developer name [closed]

余生颓废 提交于 2019-12-21 06:08:18

问题


I want to get the application developer name. Somebody please show me how I can get this. i tried but only get with installed applications and their icon . i want to display developer name


回答1:


to get a list of the installed applications installed do the following :

final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
final List<ResolveInfo> pkgAppsList = context.getPackageManager().queryIntentActivities( mainIntent, 0);

the CATEGORY_LAUNCHER means it should appear in the Launcher as a top-level application .

the queryIntentActivities Retrieve all activities that can be performed for the given intent.

To get the developer name , there is no offical api from Google to do so.

but there is an UNoffical Api that allows you to do so , check this Android Market Api and check the example provided in the link .

Please give me some feedback

Hope that Helps



来源:https://stackoverflow.com/questions/21520928/get-application-developer-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!