I am trying to use application preferences in my app, following this at AndroidDevelopes: http://developer.android.com/guide/topics/data/data-storage.html
my code is as follows. imports: import android.content.SharedPreferences; declarations: public String PREFS_NAME = "MyAppSettings"; public SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); the program compiles fine, but when i deploy it to my device it errors only if the second line of declarations is in place. I have no idea what the problem is. i have tried (PREFS_NAME, 0)("MyAppSettings", 0) ("PREFS_NAME, MODE_PRIVATE)("MyAppSettings", "MODE_PRIVATAE") and every time it still errors on the device. any and all help is greatly appreciated. thanks ~Matt -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en