aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--android/Fix My Street/.classpath14
-rw-r--r--android/Fix My Street/.project33
-rw-r--r--android/Fix My Street/.settings/org.eclipse.jdt.core.prefs5
-rw-r--r--android/Fix My Street/AndroidManifest.xml68
-rw-r--r--android/Fix My Street/default.properties22
-rw-r--r--android/README.txt27
6 files changed, 169 insertions, 0 deletions
diff --git a/android/Fix My Street/.classpath b/android/Fix My Street/.classpath
new file mode 100644
index 000000000..ff7848378
--- /dev/null
+++ b/android/Fix My Street/.classpath
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="lib" path="C:/Documents and Settings/Anna/Desktop/httpcomponents-client-4.0-alpha4/lib/log4j-1.2.14.jar"/>
+ <classpathentry kind="lib" path="C:/Documents and Settings/Anna/Desktop/httpcomponents-client-4.0-alpha4/lib/apache-mime4j-0.3.jar"/>
+ <classpathentry kind="lib" path="C:/Documents and Settings/Anna/Desktop/httpcomponents-client-4.0-alpha4/lib/commons-codec-1.3.jar"/>
+ <classpathentry kind="lib" path="C:/Documents and Settings/Anna/Desktop/httpcomponents-client-4.0-alpha4/lib/commons-io-1.2.jar"/>
+ <classpathentry kind="lib" path="C:/Documents and Settings/Anna/Desktop/httpcomponents-client-4.0-alpha4/lib/httpclient-4.0-alpha4.jar"/>
+ <classpathentry kind="lib" path="C:/Documents and Settings/Anna/Desktop/httpcomponents-client-4.0-alpha4/lib/httpmime-4.0-alpha4.jar"/>
+ <classpathentry kind="lib" path="C:/Documents and Settings/Anna/Desktop/commons-httpclient.jar/commons-httpclient.jar"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/android/Fix My Street/.project b/android/Fix My Street/.project
new file mode 100644
index 000000000..273fa61ee
--- /dev/null
+++ b/android/Fix My Street/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Fix My Street</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/android/Fix My Street/.settings/org.eclipse.jdt.core.prefs b/android/Fix My Street/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..6cd1b61aa
--- /dev/null
+++ b/android/Fix My Street/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,5 @@
+#Thu Sep 04 20:41:23 BST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/android/Fix My Street/AndroidManifest.xml b/android/Fix My Street/AndroidManifest.xml
new file mode 100644
index 000000000..078ff37dd
--- /dev/null
+++ b/android/Fix My Street/AndroidManifest.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+ <!-- version info etc -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.fixmystreet" android:versionCode="2"
+ android:versionName="0.9">
+
+<uses-sdk android:minSdkVersion="3" />
+ <!-- Permissions -->
+ <uses-permission android:name="android.permission.CAMERA" />
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
+ <uses-permission android:name="android.permission.INTERNET" />
+
+ <application android:icon="@drawable/house_icon"
+ android:label="Fix My Street">
+
+ <!-- Main screen -->
+ <activity android:name=".Home" android:label="@string/app_name"
+ android:theme="@style/Theme.Filler">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+
+ <!-- Details page -->
+ <activity android:name=".Details" android:label="Fix My Street - Add details"
+ android:theme="@style/Theme.Filler">
+ <intent-filter>
+ <action android:name="android.intent.action.DETAILS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
+ <!-- Success page -->
+ <activity android:name=".Success" android:label="Fix My Street - Success"
+ android:theme="@style/Theme.Filler">
+ <intent-filter>
+ <action android:name="android.intent.action.SUCCESS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
+ <!-- About page -->
+ <activity android:name=".About" android:label="Fix My Street - About"
+ android:theme="@style/Theme.Filler">
+ <intent-filter>
+ <action android:name="android.intent.action.ABOUT" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
+ <!-- Help page -->
+ <activity android:name=".Help" android:label="Fix My Street - Help"
+ android:theme="@style/Theme.Filler">
+ <intent-filter>
+ <action android:name="android.intent.action.HELP" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
+ <!-- Settings (not exposed to user) -->
+ <activity android:name=".Settings" android:label="Settings">
+ </activity>
+
+ </application>
+</manifest> \ No newline at end of file
diff --git a/android/Fix My Street/default.properties b/android/Fix My Street/default.properties
new file mode 100644
index 000000000..0a007ab5e
--- /dev/null
+++ b/android/Fix My Street/default.properties
@@ -0,0 +1,22 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-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
+# define configuration to create apks with limited language sets.
+# Format is a comma separated list of configuration names. For each
+# configuration, a property will declare the resource configurations to
+# include. Example:
+# apk-configurations=european,northamerica
+# apk-config-european=en,fr,it,de,es
+# apk-config-northamerica=en,es
+apk-configurations=
diff --git a/android/README.txt b/android/README.txt
new file mode 100644
index 000000000..02267a34e
--- /dev/null
+++ b/android/README.txt
@@ -0,0 +1,27 @@
+FixMyStreet Android application
+==============================
+
+The Fix My Street directory contains a complete application that should open
+directly in Eclipse.
+
+However, to compile it as an .apk, you will need to add the following JAR files
+to your build path - these make the multipart messages work.
+
+- commons-httpclient.jar
+- httpcomponents-client-4.0-alpha4.lib
+
+Hopefully these will no longer be needed in future versions of Android.
+
+I've compiled it against version 1.5 (Cupcake).
+
+Note that the app has to be signed to go onto the Android Market, contact
+anna@mysociety.org to do this.
+
+TODO (if you're an Android developer and wish to help mySociety,
+---- feel free to volunteer for any of these)
+
+* Improve flow - when you start the app, there should really be a
+welcome message explaning what FMS is, and a "Click here to take
+a photo" button, then after the photo a "Now add your details" screen.
+At the moment the opening screen doesn't really make sense unless you
+already know what FixMyStreet is - it should be more welcoming.