App Version help

rfresh

Well-Known Member
Licensed User
Longtime User
I started off with my app version as:

Version code (integer) 1
Version string 0

How should I bump up to the next version? I'd like to use 1.1 but I'm now clear on how to do that with Version code (integer) since 1.1 is not an int. I assume I can put 1.1 in the Version string field but how do I handle the int field?

Thanks...
 

NJDude

Expert
Licensed User
Longtime User
The version code is for the Market internal use and it's an integer, that's how the Market differentiates versions, the Version string is whatever number you want to put there.

In other words, everytime you make an update just increase the Version Code by 1, but the Version string is completly up to you.
 
Upvote 0

rayzrocket

Member
Licensed User
Longtime User
I have updated my app and tried to upload the new apk file to Google Play via the developer console without success. I change the application version integer in B4A2.2 from 4 to 5 in my project under the 'project' and 'Application Version'. And when I went to upload my .apk, I got this error:
" Upload failed
You need to use a different version code for your APK because you already have one with version code 4. "
Do i need to change the name of the application as well? or label?
I need to publish soon, please help.
:BangHead:
 
Upvote 0

rayzrocket

Member
Licensed User
Longtime User
I found that the AndroidManifest.xml was nor being replaced when I did more compiles, 'release', in my B4A project; but an AndroidManifest-Example.xml was being made. The Android market was using the AndroidManifest.xml for the upload, which as the old version number, where the new version number appears in the AndroidManifext-Example.xml.

So, I deleted both .xml's , re-compiled (Release) my B4A project, and yippieee..the AndroidManifest.xml was created with correct version number integer, and Android market uploaded it.

Is this a bug in B4A 2.2 ? or do have a setting incorrect?

-ray
 
Upvote 0

dclarkchem

Member
Licensed User
Longtime User
version number

after several hours, I discovered that you must do the following PRIOR to compiling the code:

1. click the project >> do not overwrite the manifest file (ignore the 'this option is obsolete and is kept only for backwards compatibility' message).

AND

2. use an editor to edit the manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dec_software.buzzer"
android:versionCode="2"
android:versionName=""
android:installLocation="internalOnly">
 
Upvote 0
Top