Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 17    Views: 96

Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
01/30/13 09:46 AM (12 years ago)

Updating in Google Play

I'm updating a v1.5 app to the v2.0. What items need to be changed to match so that it will be accepted in the store? Thanks Shane
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/30/13 10:02 AM (12 years ago)
The packageName (as found in AndroidManifest.xml) must match, and it must be signed with the same release keystore as the original app. I think those are the only two things. Mark
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/30/13 10:06 AM (12 years ago)
Okay. Thanks Mark
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/30/13 10:17 AM (12 years ago)
And the version code in the manifest will need to be changed.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/30/13 10:21 AM (12 years ago)
Yep, good point, @raveyd! It should be incremented above what the previous manifest file had.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/30/13 10:24 AM (12 years ago)
Ok. Seems simple
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/30/13 12:04 PM (12 years ago)
1)is a com. required before, or in Google Play is has it in front and back? 2)If I change the package name, how do I change it every where else that is needed to match?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/30/13 12:06 PM (12 years ago)
1 - Typically it's reverse internet notation, so com.website.appname. Or, you can just do com.appname 2. You can use an editor like Notepad++ to search and replace text across multiple files. Mark
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/30/13 01:40 PM (12 years ago)
so I am renaming the application packager and I get the error: Element type "manifest" must be followed by either attribute specifications, ">" or "/>". [2013-01-30 13:38:21 - com.v1_4.BF9C56C9034FF044C7F53F7B.com] Parser exception for /com.v1_4.BF9C56C9034FF044C7F53F7B.com/AndroidManifest.xml: Element type "manifest" must be followed by either attribute specifications, ">" or "/>"
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/30/13 01:45 PM (12 years ago)
So, that first section of the file should look like this: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.twoohtestbt" android:versionCode="1" android:versionName="1.0"> Notice the beginning and ending < and >. Make sure you haven't dropped a quote anywhere.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/30/13 01:47 PM (12 years ago)
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.v1_4.BF9C56C9034FF044C7F53F7B.com" android:versionCode="1" android:versionName="1.4" > This is what it changed to.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/30/13 01:58 PM (12 years ago)
Try bringing the > up to the end of the versionName line, instead of on a line of its own. Also, you'll want to increment versionCode, since this is an update. And probably set versionName to "2.0" or whatever you want your users to see.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/30/13 02:26 PM (12 years ago)
I got that error to go away vut still having a bunch of other problems. I did a rename package and went to under src and did a refractor....Other issues such as appdelagate are not right either. I thought the easiest thing would be to rename the project name in the BT console but it son't let me use(.)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/30/13 02:32 PM (12 years ago)
I'm not sure if refactoring is the way to go...but I have zero experience with that. I think the best way is to do a search and replace in all your source files where the package name is indicated. You'll also have to rename your delegate files I think. I've never done this, unfortunately, so I'm just going on theory at the moment. Mark
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/30/13 02:36 PM (12 years ago)
Yeah, me either... Any way to change it the other way...I mean changing what Google Play has?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/30/13 02:37 PM (12 years ago)
Nope. Once you have an app published with a particular package name, it can't be changed. In fact, it can't even be resused...ever. It's there way of keeping order in the universe.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/30/13 02:39 PM (12 years ago)
Thought so. Why can't the package name on BT allow characters? Might mess up code? I wonder how anyone else has updated a stock v1.4 app to v2.0?
 
SGS3 Mike
Android Fan
Profile
Posts: 2
Reg: Jan 24, 2012
Toowoomba
1,570
like
04/05/13 03:40 PM (12 years ago)
thats a good question! how do others here update their v1.4 to v2.0? I was just going to create a new app but you cant call it the same thing? do you have to delete the old one first and then make the new one? and if you deleted the old one wouldn't that stop it from working on people's phones?
 

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.