[android-developers] Re: mysterious crash accessing Preferences - works if package name is changed

2011-02-04 Thread mot12
Looks like I screwed up big time. I retrieved the wrong revision when checking this users code. The null pointer was actually the line following: if (Settings.System.getString(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION)).equals(1)) which should have been

Re: [android-developers] Re: mysterious crash accessing Preferences - works if package name is changed

2011-02-04 Thread Marcin Orlowski
On 4 February 2011 16:07, mot12 martin.hu...@gmail.com wrote: Looks like I screwed up big time. I retrieved the wrong revision when checking this users code. The null pointer was actually the line following:                if (Settings.System.getString(getContentResolver(),

[android-developers] Re: mysterious crash accessing Preferences - works if package name is changed

2011-01-31 Thread TomTasche
One of my users reported something similar a few months ago and told me it was due to bad permissions. Maybe your user should try to uninstall and install the app again. Good luck Tom On Jan 31, 6:59 pm, TreKing treking...@gmail.com wrote: On Mon, Jan 31, 2011 at 3:59 AM, mot12

Re: [android-developers] Re: mysterious crash accessing Preferences - works if package name is changed

2011-01-31 Thread TreKing
On Mon, Jan 31, 2011 at 12:11 PM, TomTasche tomtas...@gmail.com wrote: Maybe your user should try to uninstall and install the app again. On Mon, Jan 31, 2011 at 3:59 AM, mot12 martin.hu...@gmail.com wrote: I assumed a problem with the installation and asked the user to uninstall and

Re: [android-developers] Re: mysterious crash accessing Preferences - works if package name is changed

2011-01-31 Thread mot12
Thanks for the input. This guy has a G1 with standard Android 1.6. If he had a custom ROM, I would not waste time debugging it. However, you both bring up something interesting here: custom ROMs and permissions. I have two other users with two different custom ROMs and my app can't save anything