diff options
author | Struan Donald <struan@exo.org.uk> | 2013-09-18 13:34:10 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-09-18 13:34:10 +0100 |
commit | 79142c63dbff5497ffc33c8a5c27fdf37ce4e178 (patch) | |
tree | 305ebf4e5eac85332f4ad940f33551bc1e8ffbb3 | |
parent | 910f1163ccecbbfee1697f34444f1378e382ffe0 (diff) |
Add an android error page
Slightly less jarring than a dialog if something goes wrong during app
startup
-rwxr-xr-x | Android/res/xml/config.xml | 1 | ||||
-rw-r--r-- | src/android_error.html | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Android/res/xml/config.xml b/Android/res/xml/config.xml index 28f0047..69ea9e1 100755 --- a/Android/res/xml/config.xml +++ b/Android/res/xml/config.xml @@ -47,6 +47,7 @@ <preference name="InAppBrowserStorageEnabled" value="true" /> <preference name="disallowOverscroll" value="true" /> --> + <preference name="errorUrl" value="file:///android_asset/www/src/android_error.html" /> <feature name="App"> <param name="android-package" value="org.apache.cordova.App"/> diff --git a/src/android_error.html b/src/android_error.html new file mode 100644 index 0000000..b39079f --- /dev/null +++ b/src/android_error.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title></title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" /> + <meta charset="utf-8"> + + <link rel="stylesheet" href="css/fms.css" type="text/css" media="screen" title="no title" charset="utf-8"> + + </head> + <body> + <div id="load-screen"> + <div class="radar"></div> + <p>There seems to have been a problem starting the app. Please quit and try again</p> + </div> + </body> +</html> |