Consider the following situations:

  • There has been a problem with your application and you are notified there exist a bug in your app.

  • You have been asked to add new features

  • You have been asked to improve a feature in your app.

In such circumstances you should publish an upgrade for your application. This procedure could have been hard but fortunately android has made it easy. When you publish the latest version of the application, cafe bazaar notifies users. Managing updates for applications are done by two attributes called, Version Code and Version Name which are defined in the manifest file.

Version Code

This attribute is an integer and is not shown to users. This number is used to identify if the program under development is an update or not. So to upload an update version on CafeBazaar, its mandatory to increase Version Code. for example if in the previous package, version code is set as 2, the next package can be uploaded if and only if you set the version code more than 2. It can be 3, 10 or even 1000, any integer more than 2.

Note: We recommend to increase version code for every update only one unit.

Version Name

Version Name is an attribute, shown to users discriminating prior versions from updates You can define it as you wish. For example, it is possible to use characters or numbers or even some symbols. It can be more, equal or even less than the previous version name.

An example of Manifest file

This picture shows an example of the manifest file.

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

     package="com.example.package.name"

     android:versionCode="2"

     android:versionName="1.1">

   <application android:icon="@drawable/icon" android:label="@string/app_name">

       ...

   </application>

</manifest>

Android studio:

According to this picture, choose build.grade file and edit Version Code and Version Name.

Attention: for assurance use clean project button. 

Basic4Android

In basic4Android environment you can easily increase your application Version Code and Version Name as shown below.

 

Unity

Coming soon