I'm developing an application on API 2.2 (Froyo). I'm having a problem with myListActivity when I do an orientation change from Vertical to Horizontal (F11 on emulator). After the orientation change, I go through onDestroy and onCreate as expected. After the onCreate, the application restarts and I get my first screen. My ListActivity changes list adapters as the user makes various selections. Each time a selection is made, a new list adapter is created, setListAdapter( ) is called, followed by notifyDataSetChanged( ), which results in the new list adapter displaying the new data on the screen.
For some reason, after the Orientation change, only the first list adapter works. After making new selections, creating a new list adapter, and calling notfiyDataSetChanged( ), I never get the next display. It is as if the notifyDataSetChanged( ) isn't working after the Orientation change. I have emulated this theory by altering my app by not calling notifyDataSetChanged, and I get the same behavior in lieu of doing the orientation change. I have tried a copy of later APIs, and I get the same results. I do have some static classes in my application, I tried to null them out in onDestroy( ), thinking they were causing problems on the return through onCreate( ), but that didn't help. Anyone have some advice on what I might be doing wrong? Regards, Jim -- 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