How to Identify the package name for specified application(.apk) in android -


In my application there is a list of * .apk files.

Only the application (ex.

is it possible.

Thank you in advance.

P>

It will loop through installed applications and will get the path to the package name and apk. Suppose you have the applicationInfox for your APK, So you can do it here (without the loop). << p>

  PackageManager pm = getPackageManager (); (For ApplicationInfo app: pm.getInstalledApplications (0)) {Log D. ( "Packagelist", "Package:" + App.packageName + ", sourceDir:" + app.sourceDir);}    

Comments