diff options
Diffstat (limited to 'android/Fix My Street/src')
3 files changed, 0 insertions, 139 deletions
diff --git a/android/Fix My Street/src/com/android/fixmystreet/R.java b/android/Fix My Street/src/com/android/fixmystreet/R.java deleted file mode 100644 index 54fde9562..000000000 --- a/android/Fix My Street/src/com/android/fixmystreet/R.java +++ /dev/null @@ -1,74 +0,0 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ - -package com.android.fixmystreet; - -public final class R { - public static final class attr { - } - public static final class color { - public static final int sky_blue=0x7f040001; - public static final int translucent_blue=0x7f040002; - public static final int transparent=0x7f040000; - } - public static final class drawable { - public static final int add=0x7f020000; - public static final int blue_filler=0x7f020001; - public static final int done=0x7f020002; - public static final int filler=0x7f020003; - public static final int house_icon=0x7f020004; - public static final int spacer=0x7f020005; - public static final int street_background_smaller=0x7f020006; - } - public static final class id { - public static final int background_image=0x7f07000c; - public static final int camera_button=0x7f070009; - public static final int details_button=0x7f07000a; - public static final int email_label=0x7f070006; - public static final int email_text=0x7f070007; - public static final int faq=0x7f070000; - public static final int hello_text=0x7f07000d; - public static final int name_label=0x7f070004; - public static final int name_save=0x7f070001; - public static final int name_text=0x7f070005; - public static final int report_button=0x7f07000b; - public static final int subject_label=0x7f070002; - public static final int subject_text=0x7f070003; - public static final int submit_button=0x7f070008; - } - public static final class layout { - public static final int about=0x7f030000; - public static final int details=0x7f030001; - public static final int help=0x7f030002; - public static final int home=0x7f030003; - public static final int success=0x7f030004; - } - public static final class string { - public static final int about=0x7f050007; - /** Welcome screen - */ - public static final int app_name=0x7f050000; - public static final int close=0x7f050008; - public static final int confirm_location=0x7f050002; - public static final int confirm_location_done=0x7f050003; - public static final int details=0x7f050005; - /** Details screen - */ - public static final int details_screen=0x7f05000a; - public static final int hello=0x7f050001; - public static final int imageUrl=0x7f050009; - /** About screen - */ - public static final int instructions=0x7f05000c; - public static final int report=0x7f050006; - public static final int submit=0x7f05000b; - public static final int take_a_picture=0x7f050004; - } - public static final class style { - public static final int Theme_Filler=0x7f060000; - } -} diff --git a/android/Fix My Street/src/com/android/fixmystreet/Settings.java b/android/Fix My Street/src/com/android/fixmystreet/Settings.java deleted file mode 100644 index 1c3e8df90..000000000 --- a/android/Fix My Street/src/com/android/fixmystreet/Settings.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.android.fixmystreet; - -import android.app.Activity; -import android.os.Bundle; -import android.content.SharedPreferences; - -public class Settings extends Activity { - public static final String PREFS_NAME = "Settings"; - - - @Override - protected void onCreate(Bundle state){ - super.onCreate(state); - } - - @Override - protected void onStop(){ - super.onStop(); - - String name = ""; - String email = ""; - - // Save user preferences. We need an Editor object to - // make changes. All objects are from android.context.Context - SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); - SharedPreferences.Editor editor = settings.edit(); - editor.putString("myName", name); - editor.putString("myEmail", email); - - // Don't forget to commit your edits!!! - editor.commit(); - } - } diff --git a/android/Fix My Street/src/com/android/fixmystreet/Stored.java b/android/Fix My Street/src/com/android/fixmystreet/Stored.java deleted file mode 100644 index db83c905f..000000000 --- a/android/Fix My Street/src/com/android/fixmystreet/Stored.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.android.fixmystreet; - -import android.content.Context; -import android.os.Bundle; -import android.preference.PreferenceActivity; -import android.preference.PreferenceManager; - -public class Stored extends PreferenceActivity { - // Option names and default values - private static final String OPT_EMAIL = "email"; - private static final boolean OPT_EMAIL_DEF = true; - private static final String OPT_NAME = "name"; - private static final boolean OPT_NAME_DEF = true; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - // addPreferencesFromResource(R.xml.settings); - } - - // Get email, if stored - public static boolean getEmail(Context context) { - return PreferenceManager.getDefaultSharedPreferences(context) - .getBoolean(OPT_EMAIL, OPT_EMAIL_DEF); - } - - // Get name, if stored - public static boolean getName(Context context) { - return PreferenceManager.getDefaultSharedPreferences(context) - .getBoolean(OPT_NAME, OPT_NAME_DEF); - } -}
\ No newline at end of file |