Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android app package name

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

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?

like image 786
Liam Flaherty Avatar asked Apr 25 '26 21:04

Liam Flaherty


1 Answers

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

like image 161
zapl Avatar answered Apr 27 '26 12:04

zapl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!