How get package resource apk path on device Android example

On Android device is path to *.apk like this example:

/data/app/cz.okhelp.my_package.apk

How get package *.apk path on device dynamically Android example

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
 
        String sPackagePath = getPackageResourcePath();
     }
This entry was posted in Android Examples Code and tagged , , . Bookmark the permalink.


Comments are closed.



8,966 views