Wow! I don't know if the following is helpful at all. I've seen my DroidX reboot a bunch of times and in almost all cases the offending app is probably Google Maps. I say probably because that's the forefront app. Usually the whole screen freezes - nothing has an impact and then I see that red circular image!! I wonder if there is a way to pin this down for that app as well which might then make it a bigger priority for Moto to fix??
On Mon, Feb 7, 2011 at 6:48 AM, mot12 <[email protected]> wrote: > Possibly found the culprit. In several activities, I call this: > > setContentView(R.layout.main); > switch (Preferences.getPrefOrientation(this, Screen.MAIN)) > { > case 0: > if > ("1".equals(Settings.System.getString(getContentResolver(), > Settings.System.ACCELEROMETER_ROTATION))) > > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); > break; > case 1: > > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); > break; > case 2: > > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); > break; > > Basically this fixes the screen orientation to portrait or landscape, > or tells Android to use the rotation sensor again to determine the > screen orientation. This code works fine except on the DroidX. Even on > the DroidX fixed orientation works fine (protrait only, landscape > only) but if I set the orientation to be tied to the sensor, resuming > such an activity and then changing the sensor orientation causes the > reboot. My app works fine if I take this single line of code out. > > Of course, this is completely unsatisfying. The line itself doesn't > cause an immediate blowup but it seems to be the cause for blowups > later. Maybe this is a firmware bug. Maybe it is something entirely > different and all this is just circumstantial. I don't have the > resources to spend more time on this issue now but if anybody has an > idea on how to make sense of this, I would love to learn. > > -- > 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 > -- 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

