Package Name vs Application Id (Android)
Package Name :
Package Name groups the Classes that have similar functionalities. For example,You can place all the classes related to models in a separate package, all the classes related to network in separate one. It will be easier to look for the related classes if they are grouped by package name.
Application Id :
Application Id is the unique id that differentiates your android app from other apps in the google play store. One can find "applicationId" under defaultConfig section of app module level build.gradle file. It may or may not be equals to package name. At least contains two words separated by dot(ex com.android).
- You can change package name at any time. But Once published you should never change application id if you want to place updates to the existing app in playstore.
Conclusion :
By Default Android Studio creates application id same as package name in module level gradle file. You can change it to anything you want but be careful to use the same application id while updating.
Comments
Post a Comment