Liam Flaherty Liam Flaherty - 2 years ago 125
Java Question

Android app package name

When creating an Android application using Java, you place your classes into packages such as


However, in the Android XML manifest file, you also specify the package there.

It is my understanding that the Google Play Store, where Android apps are uploaded, uses the package name as a unique identifier for your app.

So, which package name actually identifies your app/APK file? And can the package names in your code be different to the package name in the manifest?

Answer Source

Only the package name in AndroidManifest.xml counts and must not change. The package you put your Java classes in can be anything.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download