Tag Archives: package

2,841 views

Problem in parsing the package Android 2.1

Eclipse. If install on device signed with proguard *.apk package and try to reinstall it by only signed package get error in parsing the package. Uninstall the first application with bigger size from device and try install signed package which … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged , , | Comments Off on Problem in parsing the package Android 2.1
9,052 views

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(); }

Posted in Android Examples Code | Tagged , , | Comments Off on How get package resource apk path on device Android example
13,837 views

Get package name Context-getPackageName Android example

If you often copy your Android project to another you have to using function for obtaining varied information about package. This code show how get package name in Android application as string: Context context = getContext(); // this.getContext(); getApplicationContext(); etc. … Continue reading

Posted in Android Examples Code | Tagged , , , , | Comments Off on Get package name Context-getPackageName Android example