Changing the package name

83 views
Skip to first unread message

Gareth Murfin

unread,
Sep 30, 2014, 6:18:30 AM9/30/14
to codenameone...@googlegroups.com
My client published a cn1 app on google play for free, then decided he wanted to charge. Can I simply unpublish the old one, refactor the package name and build him a new one to upload? I seem to remember reading somewhere that you should not change the package name in cn1 after the event... or am I wrong ?

Diamond

unread,
Sep 30, 2014, 7:25:13 AM9/30/14
to codenameone...@googlegroups.com
Why not change the version number with the same package name and when published will replace the old one and existing users who updates the app will start to get charged. Remember to indicate clearly on the Play store's description why users will be charged and the new features introduced to the app.

On a separate note, Am struggling with Google places Autocomplete in CN1...I tried to follow your post on this forum but it was hard for me to understand. Kindly assist me please.

Thanks

Shai Almog

unread,
Sep 30, 2014, 8:29:10 AM9/30/14
to codenameone...@googlegroups.com
Hi,
you can refactor but you will need to make sure to update the package name everywhere in the properties file and in the run settings of the project which people often get wrong.
Diamond I suggest opening a new thread with some details since I don't quite understand that question.

BWC

unread,
Sep 28, 2017, 1:07:45 PM9/28/17
to CodenameOne Discussions
Hi, where are the "run settings" you mentioned where I would have to change the package name? When our app was being set up, the package was set as com.myapp instead of com.myapp.example. How do I add that last name and not ruin the whole app? I can easily set the properties and add directory folders in src but what about elsewhere? Can you tell me specifically what needs to be changed? 

Thanks!

Shai Almog

unread,
Sep 28, 2017, 11:34:30 PM9/28/17
to CodenameOne Discussions

BWC

unread,
Oct 2, 2017, 12:09:55 PM10/2/17
to CodenameOne Discussions
Thanks. I read the article, but am unclear; do I have to add copies of each java (or kotlin) class to the new package?

Shai Almog

unread,
Oct 3, 2017, 12:14:54 AM10/3/17
to CodenameOne Discussions
Not copies you can derive the main class.
Reply all
Reply to author
Forward
0 new messages