Liam Flaherty Liam Flaherty - 5 months ago 15x
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?


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