android-backup-service

Examples of application, used Android Backup Services

佐手、 提交于 2019-12-03 16:16:58
Do you know of any Android applications (open source, if it's possible), which uses the Android Backup Service ? I need examples of how the Backup Service can be used in real applications. Here is a list of some open-sourced apps with Android Backup implemented: Triple Solitaire ( github sources , Google Play ) KTodo ( github sources , Google Play ) Penroser ( github sources , Google Play ) SeriesGuide Show Manager ( github sources , Google Play ) ServiceDroid ( github sources , Google Play ) Awful ( github sources , Google Play ) ConnectBot , Sage-Mobile-Calc ( github sources , Google Play )

onRestore not invoked for my custom BackupAgent

别等时光非礼了梦想. 提交于 2019-12-03 16:16:45
问题 There are some data in my Android app that I would like to backup and restore. For that purpose I have created a custom implementation of BackupAgent . In my manifest in have included the backup agent as you can see below <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="com.myapp" android:versionCode="14" android:versionName="1.13" > <application android:backupAgent="com.myapp.MyBackupAgent"> <meta-data android:name="com.google

Background application without ui

末鹿安然 提交于 2019-12-03 13:19:08
问题 I am new to android development. I want to make one background application, so that it keeps running in background, and it's without any UI, and even its icon do not appear on desktop. In short it's a stealth application. Is it possible? 回答1: This is certainly possible. To create an app that does not have an icon in the launch pad, just remove the Activity with the android.intent.category.LAUNCHER category from the AndroidManifest.xml . To implement your background application it strongly

Background application without ui

二次信任 提交于 2019-12-03 02:36:57
I am new to android development. I want to make one background application, so that it keeps running in background, and it's without any UI, and even its icon do not appear on desktop. In short it's a stealth application. Is it possible? This is certainly possible. To create an app that does not have an icon in the launch pad, just remove the Activity with the android.intent.category.LAUNCHER category from the AndroidManifest.xml . To implement your background application it strongly depends on what you want to do. You can create a Service for long running tasks, BroadcastReceiver s to react

Android Data Backup service

混江龙づ霸主 提交于 2019-11-30 23:06:02
I am trying to use the Data Backup service, in order to save the user shared preferences, as described here . However, I have experienced the following problems when trying to test it in different Android versions. Android 2.3.4: After extending the BackupAgentHelper, while trying to test the service using the bmgr tool (by following the steps here ), in my Motorola Atrix with Android 2.3.4, I see the following messages: W/BackupTransportService(1618): Unknown package in backup request: @pm@ W/BackupTransportService(1618): Not ready for backup request right now: [OperationScheduler:

Android SharedPreferences Backup Not Working

岁酱吖の 提交于 2019-11-30 13:59:32
I've been doing my homework on how to backup SharedPreferences in my Android application, especially using reflection to maintain backwards compatibility. At least I've been trying. Unfortunately, none of my code actually ends up creating a backup! This includes forcing adb bmgr commands on the emulator as explained here . So I'm wondering if the community could perhaps help me out and in the process come up with some better documentation? Here's my code. To keep this as generic as possible for others, I will simply call my application Andy with a package name of com.example.andy . Android

How Do You Test the Android 6.0 Full-Backup Behavior?

久未见 提交于 2019-11-30 10:34:58
问题 TL;DR: How do you successfuly use the command-line tools (or anything else) to test the Android 6.0 backup and restore behavior, as I cannot get them to restore anything? Since I was running into problems earlier with a sample app from my book trying to get this working, I started from scratch for the purposes of this question. I created a brand-new project from the Android Studio 1.4.1 new-project wizard, accepting all relevant defaults, except I went with the "Empty Activity" template and

Android backup service - when and how often to backup?

我与影子孤独终老i 提交于 2019-11-30 05:08:12
I want to backup my app's data using Android backup service , but I'm concerned about network usage. I have about 500KB of data that needs to be uploaded for each backup operation. Not much, but if the backup is performed 10 times per day, it can easily reach 5MB. My question is, when and how often does Android decides to perform backup? The documentation only mentions "at an opportune time in the future" after I call dataChanged() . It doesn't explain what conditions constitute an "opportune time". You can request a backup operation at any time by calling dataChanged() . This method notifies

How Do You Test the Android 6.0 Full-Backup Behavior?

跟風遠走 提交于 2019-11-29 20:56:02
TL;DR: How do you successfuly use the command-line tools (or anything else) to test the Android 6.0 backup and restore behavior, as I cannot get them to restore anything? Since I was running into problems earlier with a sample app from my book trying to get this working, I started from scratch for the purposes of this question. I created a brand-new project from the Android Studio 1.4.1 new-project wizard, accepting all relevant defaults, except I went with the "Empty Activity" template and added a 2 to the application ID and display name. I then added a bit of code to the activity to give me

Android backup service - when and how often to backup?

百般思念 提交于 2019-11-29 02:31:19
问题 I want to backup my app's data using Android backup service, but I'm concerned about network usage. I have about 500KB of data that needs to be uploaded for each backup operation. Not much, but if the backup is performed 10 times per day, it can easily reach 5MB. My question is, when and how often does Android decides to perform backup? The documentation only mentions "at an opportune time in the future" after I call dataChanged() . It doesn't explain what conditions constitute an "opportune