aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap/Android/res
diff options
context:
space:
mode:
Diffstat (limited to 'phonegap/Android/res')
-rw-r--r--phonegap/Android/res/drawable-hdpi/ic_action_search.pngbin0 -> 3120 bytes
-rw-r--r--phonegap/Android/res/drawable-hdpi/ic_launcher.pngbin4147 -> 3014 bytes
-rw-r--r--phonegap/Android/res/drawable-ldpi/ic_launcher.pngbin1723 -> 1504 bytes
-rw-r--r--phonegap/Android/res/drawable-mdpi/ic_action_search.pngbin0 -> 3030 bytes
-rw-r--r--phonegap/Android/res/drawable-mdpi/ic_launcher.pngbin2574 -> 1969 bytes
-rw-r--r--phonegap/Android/res/drawable-xhdpi/ic_action_search.pngbin0 -> 3199 bytes
-rw-r--r--phonegap/Android/res/drawable-xhdpi/ic_launcher.pngbin0 -> 4006 bytes
-rw-r--r--phonegap/Android/res/layout/activity_main.xml14
-rw-r--r--phonegap/Android/res/layout/main.xml12
-rw-r--r--phonegap/Android/res/menu/activity_main.xml6
-rw-r--r--phonegap/Android/res/values-v11/styles.xml5
-rw-r--r--phonegap/Android/res/values-v14/styles.xml5
-rw-r--r--phonegap/Android/res/values/strings.xml2
-rw-r--r--phonegap/Android/res/xml/config.xml (renamed from phonegap/Android/res/xml/plugins.xml)20
-rw-r--r--phonegap/Android/res/xml/cordova.xml5
15 files changed, 51 insertions, 18 deletions
diff --git a/phonegap/Android/res/drawable-hdpi/ic_action_search.png b/phonegap/Android/res/drawable-hdpi/ic_action_search.png
new file mode 100644
index 000000000..67de12dec
--- /dev/null
+++ b/phonegap/Android/res/drawable-hdpi/ic_action_search.png
Binary files differ
diff --git a/phonegap/Android/res/drawable-hdpi/ic_launcher.png b/phonegap/Android/res/drawable-hdpi/ic_launcher.png
index 8074c4c57..a301d5795 100644
--- a/phonegap/Android/res/drawable-hdpi/ic_launcher.png
+++ b/phonegap/Android/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/phonegap/Android/res/drawable-ldpi/ic_launcher.png b/phonegap/Android/res/drawable-ldpi/ic_launcher.png
index 1095584ec..2c2a58b2f 100644
--- a/phonegap/Android/res/drawable-ldpi/ic_launcher.png
+++ b/phonegap/Android/res/drawable-ldpi/ic_launcher.png
Binary files differ
diff --git a/phonegap/Android/res/drawable-mdpi/ic_action_search.png b/phonegap/Android/res/drawable-mdpi/ic_action_search.png
new file mode 100644
index 000000000..134d5490b
--- /dev/null
+++ b/phonegap/Android/res/drawable-mdpi/ic_action_search.png
Binary files differ
diff --git a/phonegap/Android/res/drawable-mdpi/ic_launcher.png b/phonegap/Android/res/drawable-mdpi/ic_launcher.png
index a07c69fa5..f91f736fe 100644
--- a/phonegap/Android/res/drawable-mdpi/ic_launcher.png
+++ b/phonegap/Android/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/phonegap/Android/res/drawable-xhdpi/ic_action_search.png b/phonegap/Android/res/drawable-xhdpi/ic_action_search.png
new file mode 100644
index 000000000..d699c6b37
--- /dev/null
+++ b/phonegap/Android/res/drawable-xhdpi/ic_action_search.png
Binary files differ
diff --git a/phonegap/Android/res/drawable-xhdpi/ic_launcher.png b/phonegap/Android/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 000000000..96095ec84
--- /dev/null
+++ b/phonegap/Android/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/phonegap/Android/res/layout/activity_main.xml b/phonegap/Android/res/layout/activity_main.xml
new file mode 100644
index 000000000..0b4ffccc1
--- /dev/null
+++ b/phonegap/Android/res/layout/activity_main.xml
@@ -0,0 +1,14 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:text="@string/hello"
+ tools:context=".MainActivity" />
+
+</RelativeLayout>
diff --git a/phonegap/Android/res/layout/main.xml b/phonegap/Android/res/layout/main.xml
deleted file mode 100644
index bc12cd823..000000000
--- a/phonegap/Android/res/layout/main.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical" >
-
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="@string/hello" />
-
-</LinearLayout> \ No newline at end of file
diff --git a/phonegap/Android/res/menu/activity_main.xml b/phonegap/Android/res/menu/activity_main.xml
new file mode 100644
index 000000000..cfc10fd52
--- /dev/null
+++ b/phonegap/Android/res/menu/activity_main.xml
@@ -0,0 +1,6 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/menu_settings"
+ android:title="@string/menu_settings"
+ android:orderInCategory="100"
+ android:showAsAction="never" />
+</menu>
diff --git a/phonegap/Android/res/values-v11/styles.xml b/phonegap/Android/res/values-v11/styles.xml
new file mode 100644
index 000000000..d408cbc37
--- /dev/null
+++ b/phonegap/Android/res/values-v11/styles.xml
@@ -0,0 +1,5 @@
+<resources>
+
+ <style name="AppTheme" parent="android:Theme.Holo.Light" />
+
+</resources> \ No newline at end of file
diff --git a/phonegap/Android/res/values-v14/styles.xml b/phonegap/Android/res/values-v14/styles.xml
new file mode 100644
index 000000000..1c089a788
--- /dev/null
+++ b/phonegap/Android/res/values-v14/styles.xml
@@ -0,0 +1,5 @@
+<resources>
+
+ <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" />
+
+</resources> \ No newline at end of file
diff --git a/phonegap/Android/res/values/strings.xml b/phonegap/Android/res/values/strings.xml
index a4df04a14..6e091cf98 100644
--- a/phonegap/Android/res/values/strings.xml
+++ b/phonegap/Android/res/values/strings.xml
@@ -3,5 +3,7 @@
<string name="hello">Hello World, AndroidActivity!</string>
<string name="app_name">FixMyStreet</string>
+ <string name="menu_settings">Settings</string>
+ <string name="title_activity_main">AndroidActivity</string>
</resources> \ No newline at end of file
diff --git a/phonegap/Android/res/xml/plugins.xml b/phonegap/Android/res/xml/config.xml
index 76879a1ce..4a6fffccb 100644
--- a/phonegap/Android/res/xml/plugins.xml
+++ b/phonegap/Android/res/xml/config.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!--
+<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
@@ -17,6 +17,21 @@
specific language governing permissions and limitations
under the License.
-->
+<cordova>
+ <!--
+ access elements control the Android whitelist.
+ Domains are assumed blocked unless set otherwise
+ -->
+
+ <access origin="http://127.0.0.1*"/> <!-- allow local pages -->
+
+ <!-- <access origin="https://example.com" /> allow any secure requests to example.com -->
+ <!-- <access origin="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www -->
+ <access origin=".*"/>
+
+ <log level="DEBUG"/>
+ <preference name="useBrowserHistory" value="false" />
+ <preference name="exit-on-suspend" value="false" />
<plugins>
<plugin name="App" value="org.apache.cordova.App"/>
<plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/>
@@ -35,4 +50,7 @@
<plugin name="Capture" value="org.apache.cordova.Capture"/>
<plugin name="Battery" value="org.apache.cordova.BatteryListener"/>
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
+ <plugin name="Echo" value="org.apache.cordova.Echo" />
</plugins>
+</cordova>
+
diff --git a/phonegap/Android/res/xml/cordova.xml b/phonegap/Android/res/xml/cordova.xml
deleted file mode 100644
index c7b500003..000000000
--- a/phonegap/Android/res/xml/cordova.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<cordova>
- <access origin="http://127.0.0.1*"/>
- <log level="DEBUG"/>
-</cordova>