[android-developers] Problem with handler

2011-12-06 Thread Vincent
Hi, I am currently developing a project which needs to write/read data via bluetooth. I met a werid problem when I try to use a handler to deal with the information back from the service I created. When I put a breakpoint after bytes = mmInStream.read(buffer); ( in ConnectedThread.run() ) I

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 hack...@android.com wrote: You are sending the same messages into the handler while they are still being

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 therevolti...@gmail.comwrote: 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

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

Fwd: [android-developers] Problem in Handler

2011-02-03 Thread roshan vidapanakal
Date: Thu, Feb 3, 2011 at 9:46 AM Subject: [android-developers] Problem in Handler To: Android Developers android-developers@googlegroups.com 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

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 therevolti...@gmail.comwrote: Right, just move your obtainMessage() inside your loop. I personally use Message.obtain(),

[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:

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 yogi.ru...@gmail.com wrote: Hi all, I have created to thread in an application, and from these threads i am

[android-developers] Problem with Handler and messages

2008-10-22 Thread Al_R
Hi, I have an app which makes a new server thread. This server thread connects and parses data received from the irc server and uses a handler inside the main class to update the textview. The problem I'm having is most of the times, the message is not seen by the handler. I know for sure it

[android-developers] Problem with Handler and messages

2008-10-22 Thread Al_R
Hi, I have an app which makes a new server thread. This server thread connects and parses data received from the irc server and uses a handler inside the main class to update the textview. The problem I'm having is most of the times, the message is not seen by the handler. I know for sure it