I'm learning to use the Backup API to backup/restore app data. Then I used bmgr tools to test it and met the following problem.
I typed these commands as below in cmd:
**adb shell bmgr backup com.example.myapp** ---------------OK
**adb shell bmgr run** ---------------Ok
then I enter the settings -> app to clean the data of this app. I continue to type:
**adb shell bmgr restore com.example.myapp** ---------------Ok
This seems to work fine. But when I uninstall the app and re-install it, nothing happens. There no data is restored automatically.
And when I use adb shell bmgr restore com.example.myapp to force the restoring, I met this response : unable to restore package com.example.myapp.
My env:
- Emulator: Google API16
- the Google account has been set
- check auto backup
Has anyone met this problem ? How should I solve it ?