I am targeting API 23 in my build.gradle. I have allowed backup in my manifest file. I could test auto update using adb shell commands. But auto back up is not happening on its own on my device.I have set "Back up my data" to ON in Settings -> Backup & Reset
. Backup account is also set. But backup of my app is not happening.In "Manage Backups" in Google Drive settings, my app is not listed in the apps backed up to Google Drive. I am following other conditions like keeping wi-fi on, phone on charger and keeping it idle.Where am I going wrong? Is it because it's a debug app and not release app? Here are the configs in my build.gradle
and manifest
files:
Manifest
<application
android:name=".app.GlobalState"
android:allowBackup="true"
android:fullBackupOnly="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:theme="@style/TripAppTheme">
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:24'
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.spiritapps.android.tripplannerapp"
minSdkVersion 16
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = file("$project.buildDir/apk/MyApp.apk")
}
}
}
}
dependencies {
compile 'com.android.support:support-v13:25.1.0'
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.google.android.gms:play-services-auth:10.2.0'
compile 'com.google.android.gms:play-services-base:10.2.0'
compile 'com.google.android.gms:play-services-identity:10.2.0'
compile 'com.google.android.gms:play-services-analytics:10.2.0'
compile 'com.google.android.gms:play-services-drive:10.2.0'
compile 'com.google.android.gms:play-services-location:10.2.0'
compile 'com.google.android.gms:play-services-maps:10.2.0'
compile 'com.google.android.gms:play-services-ads:10.2.0'
compile 'com.google.android.gms:play-services-places:10.2.0'
compile 'joda-time:joda-time:2.2'
}
Also, is wi-fi
necessary or data connection will also work?