Perhaps you are leaking an activity, view, or dialog when you rotate the phone. Remember that rotating the phone calls onDestroy and onCreate again.
On Tue, Mar 22, 2011 at 1:51 PM, Justin Anderson <[email protected]>wrote: > How many times does it take to crash if you skip rotating the phone 30 > times while displaying the bitmap? > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > > On Tue, Mar 22, 2011 at 2:32 PM, John <[email protected]> wrote: > >> I have an Activity that displays a bitmap. I have tried 30 times >> rotating the phone into landscape and back to portrait. There is no >> crash. >> >> Then I display an AlertDialog using Activity.showDialog. Instead of >> pressing the "OK" button to dismiss the dialog, I rotate the phone. >> The dialog is still displayed in landscape mode, and everything looks >> good. Then I rotate the phone a total of 9 times, and the app crashes >> with an out-of-memory error. >> So my question is what effect does displaying the AlertDialog have >> on my Activity that causes it to run out of memory after 9 rotations? >> >> Thanks, >> John >> >> -- >> 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 > -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx -- 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

