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
if
("1".equals(Settings.System.getString(getContentResolver(),
Settings.System.ACCELEROMETER_ROTATION))))
for obvious reasons.
Sorry for wasting everybody's time. The mystery remains why this code
didn't crash on this user's device if installed with a different
package name. What the heck, it may be wiser to pretend that none of
this ever happened and move on. Thanks for your help, both of you...
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en