I'm trying to test out the new BackupManager class so I've been trying to play around with the sample. For some reason I cannot get the bmgr tool to work with the BackupRestoreActivity sample application included in Android 2.2. What I tried was I started BackupRestoreActivity, changed the inputs and typed in "adb -e shell bmgr backup com.example.android.backuprestore":
05-24 18:57:47.100: VERBOSE/BRActivity(1107): Checkbox toggled: android.widget.check...@43dce740 05-24 18:57:47.149: VERBOSE/BRActivity(1107): NEW STATE: mayo=true tomato=false filling=2130968579 05-24 18:57:47.570: VERBOSE/BRActivity(1107): Checkbox toggled: android.widget.check...@43dcf3c0 05-24 18:57:47.570: VERBOSE/BRActivity(1107): NEW STATE: mayo=true tomato=true filling=2130968579 05-24 18:57:48.451: VERBOSE/BRActivity(1107): New radio item selected: 2130968577 05-24 18:57:48.460: VERBOSE/BRActivity(1107): NEW STATE: mayo=true tomato=true filling=2130968577 05-24 18:57:57.590: DEBUG/AndroidRuntime(1328): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 05-24 18:57:57.860: DEBUG/AndroidRuntime(1328): --- registering native functions --- 05-24 18:57:58.849: DEBUG/AndroidRuntime(1328): Shutting down VM 05-24 18:57:58.879: DEBUG/jdwp(1328): adbd disconnected Followed by "adb -d shell bmgr run": 05-24 18:57:58.889: INFO/AndroidRuntime(1328): NOTE: attach of thread 'Binder Thread #3' failed 05-24 18:58:04.400: DEBUG/AndroidRuntime(1340): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 05-24 18:58:04.400: DEBUG/AndroidRuntime(1340): CheckJNI is ON 05-24 18:58:04.669: DEBUG/AndroidRuntime(1340): --- registering native functions --- 05-24 18:58:05.549: WARN/BackupManagerService(60): Backup pass but e=true p=false 05-24 18:58:05.569: DEBUG/AndroidRuntime(1340): Shutting down VM 05-24 18:58:05.569: DEBUG/jdwp(1340): adbd disconnected 05-24 18:58:05.611: INFO/AndroidRuntime(1340): NOTE: attach of thread 'Binder Thread #3' failed 05-24 18:58:19.215: DEBUG/SntpClient(60): request time failed: java.net.SocketException: Address family not supported by protocol Then I changed the fillings in the activity again and typed in "adb -d shell bmgr restore com.example.android.backuprestore". In the console I see the output: Unable to restore package com.example.android.backuprestore done and in the android logs: 05-24 18:58:49.660: VERBOSE/BRActivity(1107): New radio item selected: 2130968579 05-24 18:58:49.700: VERBOSE/BRActivity(1107): NEW STATE: mayo=true tomato=true filling=2130968579 05-24 18:58:53.489: DEBUG/AndroidRuntime(1366): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 05-24 18:58:53.489: DEBUG/AndroidRuntime(1366): CheckJNI is ON 05-24 18:58:53.750: DEBUG/AndroidRuntime(1366): --- registering native functions --- 05-24 18:58:54.630: VERBOSE/LocalTransport(60): finishRestore() 05-24 18:58:54.671: DEBUG/AndroidRuntime(1366): Shutting down VM 05-24 18:58:54.690: DEBUG/jdwp(1366): adbd disconnected 05-24 18:58:54.724: INFO/AndroidRuntime(1366): NOTE: attach of thread 'Binder Thread #3' failed Is anybody else having the same problem? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

