How to check application update on Google Play?

Say I have an app in the Google Play Store with version 1.0.

In the new version (1.1), I would like to update the database with new columns.

Updating the database is a common failure in my application, because users in the previous version (1.0) do not have new columns in the database.

I tried using the beta feature of the Google Play Store, but the problem is that there is no effective way (or at least I have not found it yet) to do the following:

Install the current stable version (1.0) on the tester’s device, and then upgrade the application to (1.1) - let's say we received an error message while testing a new updated version (1.1), I fix it (1.2) and I would like to repeat the procedure, I would like to install 1.0 stable application on the tester device, and yet I would like to update the application to 1.2 (with the resolved error)

The only way (as far as I know) is to remove the beta tester from the beta testing list (it may take time to update on Google Play systems), restart the application 1.0, re-add the tester to the beta testing list (again hours of waiting) and download a new application 1.2.

Is there a more complicated way to test application version updates?

Thanks in advance.

EDIT:

, , . , , .

+10
6

Beta - iOS Android.

: Overview

. Beta - . Youll , , .

- crashlytics . :

+2

Play Store .
. Drag & Drop 1.0 ( ), 1.1.

"". .

, onUpgrade SQLiteOpenHelper.

+7

, . !

  • ""
  • adb pull /data/data/com.company.app $LOCALDIR
  • IDE adb

.

: 1. adb push $LOCALDIR /data/data/com.company.app 2. 3.

+2

- . - .

, ...

  • PlayStore
  • , , , , .
  • . .

.


1. , , PlayStore, . - , . , 2..

. , , . 3. .

4. , , , . , , .
build.gradle, "" Android Studio . , , buildType, , .

.


VCS

(VCS) &mdash, , , . , 2. .
, , - build.gradle.

, , , . !

+1

, , . . , SQLite SQLiteOpenHelper.

-, SQLiteOpenHelper.

public DatabaseOpenHelper(Context context) {
    super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

onUpgrade() SQliteHelper . println log.

    @Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    this.oldVersion = oldVersion;
    this.newVersion = newVersion;

    if(oldVersion == 1 && newVersion == 2) {
          // add columns
    } else if(oldVersion == 2 && newVersion == 3) {
         // Do another stuff
   }
}

. , 1, 2 3 4 , , . .

, , db , 6, 6, , / , , , . , . , .

if (oldVersion == 2 && newVersion == 3) {

        previousMeasures = dbManager.getMeasureListAnglePhoto();
        db.execSQL("DROP DATABASE dbOld.db");
        db.execSQL("DROP TABLE IF EXISTS " + TableConstants.TABLE_ANGLE_PHOTO);

       onCreate(db);

      if (previousMeasures != null) {
        for (Measure measure : previousMeasures) {
            dbManager.addMeasureAnglePhoto(measure);
        }
    }
}
0

, , " , 1 2 ?"

. , APK, , APK.

Google Play> > >

enter image description here

APK , .

enter image description here

, .

Android, .

0,0,9 0,01

From 0.0.10 to 0.0.11

0
source

All Articles