I have an application package name. Is there any way to get the icon, name of this application ? package name example: com.example.name
if you want to get installed app package name then this code will be helpful to you.
Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
List pkgAppsList = MainActivity.this.getPackageManager().queryIntentActivities( mainIntent, 0);
Log.i("InstalledAPK",pkgAppsList.toString());
for(int i=0;i adapter=new ArrayAdapter(MainActivity.this,android.R.layout.simple_list_item_1,list);
listView.setAdapter(adapter);