Discussion Forums  >  Uncategorized

Replies: 10    Views: 243

WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
12/31/11 12:25 PM (14 years ago)

Server - package ID - Android

How can I change the package ID in an Android project built with BT-Server? See lots of choices in core properties but not that one. Can't seem to figure out how to do it in Eclipse.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
12/31/11 01:38 PM (14 years ago)
If by package id you mean package name: Before uploading the updated application, be sure that you have incremented the android:versionCode and android:versionName attributes in the <manifest> element of the manifest file. Also, the package name must be the same as the existing version and the.apk file must be signed with the same private key. If the package name and signing certificate do not match those of the existing version, Market will consider it a new application, publish it as such, and will not offer it to existing users as an update. http://developer.android.com/guide/publishing/publishing.html
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
12/31/11 01:47 PM (14 years ago)
Exactly, hence my first question.... I'm trying to use a new BT-Server version of an app originally done with 1.4. Need to change the package name so it will take it as an update.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
12/31/11 01:59 PM (14 years ago)
Good question, I posted it twice and don't have a good answer. The changes are made in the Manifest using Eclipse or a text editor on the manifest in the source code you downloaded for the new app. If that doesn't work: Perhaps changing the home screen in the BTv1.4 app to a link to the new app (messy but it would force users to up date) Don't like forcing anything, but . . .
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
12/31/11 03:17 PM (14 years ago)
Don't think that's gonna work. There are a lot of references to the package name throughout, not just in the manifest. Don't want to screw up any php going forward. Dave? Parker? Steve? Anyone? Bueller? Bueller?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
12/31/11 03:52 PM (14 years ago)
Should work. http://developer.android.com/guide/publishing/versioning.html Test it on a new app that you post on a web site. Create v1.4 Post on website or Dropbox Install to device Delete package from Eclipse Create 2.0 with same package name in Eclipse Modify Manifest Post to same site Open App & see it it updates.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
12/31/11 04:33 PM (14 years ago)
I've read that article. If I change the manifest package name I get tons of errors. Most of the BT_**** java files also reference the package name. I could change them all, but I don't want to screw up the connection to my panel, and still allow it to update the 6,000 or so instances of the app that are in use.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
12/31/11 05:55 PM (14 years ago)
Don't change the package name Change only the: android:versionCode android:versionName According to the Developers Guide this should have zero effect on the App.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
12/31/11 06:04 PM (14 years ago)
I have an app on the market already. It has a package name. The new package has to match that name, not just the version code and version name. Bottom Line: I need to change the package name of an app I created on BT-Server to match the name of an existing app on the market. It is clear that changing the name in the manifest isn't enough. How do I do it?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
12/31/11 06:13 PM (14 years ago)
Perhaps I'm missing the point, but when you create the new project the package name would be created. If you're calling the App in Buzztouch Server v2.0 the same as you called in in BTv1.5, and you give the project the same name as the previous package, Then do a version update. should that not work?
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
12/31/11 06:30 PM (14 years ago)
You cannot match a 1.4 name in Server, it won't take it. Thanks for trying.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.