My apologies for just now getting back to this. I did find my problem and it was a coding error on my part. When my activity was stopped, I was not terminating my background thread properly so when I reentered my activity things were getting hosed. It was definitely a coding error that I eventually found. Thanks for all the good feedback though.
On Dec 30 2008, 1:26 pm, Christine <christine.kar...@gmail.com> wrote: > If what Sundog says is true, i.d. that you have two instances of an > activity where there should be only one, you can spedify "singletask" > in the manifest file. that solved a similar problem I had. Make sure > you spedify "singletask" just fot that one activity. > > On Dec 30, 8:29 pm, Sundog <michael_...@tmail.com> wrote: > > > Only thing I can think of is that maybe somehow you've created a > > second TextView object upon resume and the messages are going to the > > wrong one. I've done something similar... > > > On Dec 30, 9:35 am,Dan<danscott0...@gmail.com> wrote: > > > > I'll just say upfront that I apologize if this is a duplicate post. I > > > originally posted this message in the Beginners group but now I can't > > > find it anywhere so I thought I would post it here this time. > > > > Anyway, I have an activity where I'm just listening for udp messages > > > in a background thread and then just posting those messages in a > > > TextView widget. When I originally go into the activity everything > > > works great. The messages are obtained from the background thread and > > > posted to the UI thread through a message handler. The string is then > > > written to the textview control via a call to the append() method. > > > > The issue I'm having is if I exit the activity (via the back button on > > > the G1) and then reenter the activity. Everything works great except > > > the writing to the textview control. I can see the message being > > > received in the background thread and being handed off to the message > > > handler just fine. But when I make the call to append() nothing ever > > > gets written out to the textview control. > > > > Has anyone seen this behavior before? Is there something I"m missing > > > with the textview control? Any help is greatly appreciated. > > > >Dan > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---