In a PackageManager list how to get the path of a particular app with a selection

0

As you are hoping that well. My problem is as follows I created an app list in a listView using the methods of PackageManager and PackegeInfo, but I have wondered how to find the route of that app through a selection and select the path of that using an OnItemClickListener. Help please.

    
asked by PowerApp 16.10.2016 в 02:39
source

1 answer

0

Your description leaves much to be desired, try this and adapt it to take the index from the setOnItemClickListener list list.

 List<ApplicationInfo> info = getPackageManager().getInstalledApplications(0);
 String ruta = info.get(0).sourceDir;

For more information consult the documentation that does not bite: D link

    
answered by 16.10.2016 в 17:31