diff --git a/assets/www/index.html b/assets/www/index.html index c97d6120..cf787db1 100644 --- a/assets/www/index.html +++ b/assets/www/index.html @@ -87,6 +87,12 @@ alert(fail); } + // This is just to do this. + function readFile() + { + navigator.file.read('/sdcard/phonegap.txt', fail , fail); + } + function init(){ document.addEventListener("touchmove", preventBehavior, false); setTimeout(deviceInfo, 1); @@ -112,7 +118,8 @@ Call 411 Beep Vibrate - Get a Picture + Get a Picture + Read from file
diff --git a/default.properties b/default.properties index 19e9e9df..8433081e 100644 --- a/default.properties +++ b/default.properties @@ -7,8 +7,6 @@ # "build.properties", and override values to adapt the script to your # project structure. -# Project target. -target=Google Inc.:Google APIs:3 # apk configurations. This property allows creation of APK files with limited # resources. For example, if your application contains many locales and # you wish to release multiple smaller apks instead of a large one, you can @@ -20,3 +18,5 @@ target=Google Inc.:Google APIs:3 # apk-config-european=en,fr,it,de,es # apk-config-northamerica=en,es apk-configurations= +# Project target. +target=Google Inc.:Google APIs:4 diff --git a/src/com/phonegap/demo/DroidGap.java b/src/com/phonegap/demo/DroidGap.java index 9cc9760f..8ed6e568 100644 --- a/src/com/phonegap/demo/DroidGap.java +++ b/src/com/phonegap/demo/DroidGap.java @@ -94,7 +94,6 @@ public class DroidGap extends Activity { private void bindBrowser(WebView appView) { - gap = new PhoneGap(this, appView); geo = new GeoBroker(appView, this); accel = new AccelListener(this, appView); diff --git a/src/com/phonegap/demo/FileUtils.java b/src/com/phonegap/demo/FileUtils.java index 270e9bf2..b78c76a2 100644 --- a/src/com/phonegap/demo/FileUtils.java +++ b/src/com/phonegap/demo/FileUtils.java @@ -81,6 +81,7 @@ public class FileUtils { { data += in.readLine(); } + } catch (FileNotFoundException e) { data = "FAIL: File not found"; } catch (IOException e) {