Re: [android-developers] Problem in Handler

2011-02-03 Thread roshan vidapanakal
Plz tell does this means really i am confused with this android. "Right, just move your obtainMessage() inside your loop." On Thu, Feb 3, 2011 at 2:26 PM, Miguel Morales wrote: > Right, just move your obtainMessage() inside your loop. > I personally use Message.obtain(), although I'm not sure wha

Fwd: [android-developers] Problem in Handler

2011-02-03 Thread roshan vidapanakal
at 9:46 AM Subject: [android-developers] Problem in Handler To: Android Developers Hi all, I have created to thread in an application, and from these threads i am sending a value. But the App has started but after 5-6 seconds it crashes and with the following log error. 02-03 09:40:19.598

Re: [android-developers] Problem in Handler

2011-02-03 Thread roshan vidapanakal
do i have any thing that can stop getting key dispatch Time out error. For not clicking the button for the second time i disabled the button. I have a server that sends the msgs to the quiz application. When the server is disconnected and when i am clicking on the button its not getting disable ear

Re: [android-developers] Problem in Handler

2011-02-03 Thread YoGenDr@ $iNgH
Thanks no i understand the my fault. On Thu, Feb 3, 2011 at 2:26 PM, Miguel Morales wrote: > Right, just move your obtainMessage() inside your loop. > I personally use Message.obtain(), although I'm not sure what the > difference is. > > On Wed, Feb 2, 2011 at 11:45 PM, Dianne Hackborn > wrote:

Re: [android-developers] Problem in Handler

2011-02-03 Thread Miguel Morales
Right, just move your obtainMessage() inside your loop. I personally use Message.obtain(), although I'm not sure what the difference is. On Wed, Feb 2, 2011 at 11:45 PM, Dianne Hackborn wrote: > You are sending the same messages into the handler while they are still > being dispatched.  Each mess

Re: [android-developers] Problem in Handler

2011-02-02 Thread Dianne Hackborn
You are sending the same messages into the handler while they are still being dispatched. Each message you send needs to be a new one you obtain. On Wed, Feb 2, 2011 at 8:16 PM, yogi wrote: > Hi all, > I have created to thread in an application, and from these threads i > am sending a value. >

[android-developers] Problem in Handler

2011-02-02 Thread yogi
Hi all, I have created to thread in an application, and from these threads i am sending a value. But the App has started but after 5-6 seconds it crashes and with the following log error. 02-03 09:40:19.598: ERROR/AndroidRuntime(1684): FATAL EXCEPTION: main 02-03 09:40:19.598: ERROR/AndroidRuntim