Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erroneously used mixed-case package-name on an already deployed App, can I change it to lowercase?

I have an app on Google Play whose java package name has the last part in mixed-case.. I was looking to remove an Android Lint warning (see this question) and Jens made me notice that Java naming conventions say that you should use only lowercase letters for java package names, and maybe this is what causes the warning.. My app works correctly, but I'd like to change the package name to lowercase, to comply with java naming conventions.. If I change the name of the package to only-lowercase, will I break the correct behavior of Google Play? I.e., if I release a new version of the app with the new package name Android will not recognize it as the same app installed on devices and it will appear as a completely different app? Do you suggest me simply to ignore this mistake and remember to comply with naming conventions in my next project or could I have problems (worse than simple Lint warnings) with the mixed-case package name?

like image 680
Gianni Costanzi Avatar asked Jun 03 '12 11:06

Gianni Costanzi


People also ask

Does package name matter?

We recommend you always put a name on the package, preferably the correct name, to avoid misdelivery, failed delivery attempts, lost packages, or similar.

Are package names case sensitive?

The package name should match the GitHub repository name and is case-sensitive.

Does package name matter Android studio?

It shouldn't matter. In case you still wish to change, you have to unpublish your app and publish it as a new app. This is because Google identifies your app through you bundle ID, or package name as it is called. So you cannot repeat 2 package names.

Should package names be lowercase Java?

Package names are written in all lower case to avoid conflict with the names of classes or interfaces. Companies use their reversed Internet domain name to begin their package names—for example, com.


1 Answers

Once you publish your application under its manifest package name, this is the unique identity of the application forever more. Switching to a different name results in an entirely new application, one that can’t be installed as an update to the existing application.

Its not possible to change it . Please read http://android-developers.blogspot.in/2011/06/things-that-cannot-change.html

like image 116
abbas.aniefa Avatar answered Sep 29 '22 07:09

abbas.aniefa