Fix database for Android 1.x devices. It now behaves like HTML5 database API.

This commit is contained in:
Bryce Curtis
2010-10-12 15:53:57 -05:00
parent 5164464d28
commit 032db387f8
4 changed files with 236 additions and 76 deletions
-9
View File
@@ -291,15 +291,6 @@ public class DroidGap extends Activity {
this.addService("Storage", "com.phonegap.Storage");
this.addService("Temperature", "com.phonegap.TempListener");
// Add in support for storage for Android 1.X devices
if (android.os.Build.VERSION.RELEASE.startsWith("1.")) {
System.out.println("Android 1.X device");
Package pack = this.getClass().getPackage();
String appPackage = pack.getName();
this.pluginManager.exec("Storage", "setStorage", null, "["+appPackage+"]", false);
}
}
/**