looper
MonoDroid Looper.MyQueue() hangs on some activities / Idle Handler?
I\'m using MonoDroid Looper.MyQueue().AddIdleHandler() to execute some Commands when the app is in idle mode. This is working in one activity, but if I\'m starting the second activity it hangs until i[详细]
2023-04-13 08:22 分类:问答Android code segment doesnt run without breakpoint (thread)
I have some code that will not run if I don\'t have a breakpoint. My speculation i开发者_StackOverflows that the code gets executed too quickly, and the time between me allowing a breakpoint to contin[详细]
2023-04-12 14:56 分类:问答Service, Observer, and Loopers
I am trying to create an application that contains Content Observers in a remote service but kept getting the error:[详细]
2023-04-11 09:20 分类:问答Android Looper handler handleMessage is not called after sending a message to it (HTC EVO 3D)
I am experiencing a very strange problem: On HTC EVO 3D, sometimes, a looper does not call handleMessage after a message is sent to the looper\'s handler. It happens twice and very difficult to reprod[详细]
2023-03-30 21:48 分类:问答Android: requestLocationUpdates throws exception
I\'m trying to get periodically the user position via GPS in Android and send the data to a remote DB, but I get the exception: Can\'t create handler inside thread that has not called Looper.prepare()[详细]
2023-03-26 11:13 分类:问答Android Looper confusion
Android is complaining that the code below needs to call Looper.prepare. I have tried adding Looper.prepare but the code crashes after the sixth execution, leading me to believe that it wasn\'t as sim[详细]
2023-03-21 20:22 分类:问答Specifics on using Looper.prepare() in Android
I\'m having a bit of trouble understanding how to use the Looper prepare()/loop()/quit() logic. I have three threads: one is the UI thread, one is a game logic thread and the last is a network commu[详细]
2023-03-19 16:21 分类:问答get main thread's message queue and handler
How do I get the message queue of the main thread from another thread? Looper.getMainLooper() gets the main thread\'s looper but I am unable to find a way to get the MessageQueue for another thread\'s[详细]
2023-03-17 02:23 分类:问答How to properly call AsyncTask from a separate thread?
I\'m developing a game, that is running in a separate thread. Now I need to download an image from Internet. I\'ve written an AsyncTask class for that, but I can\'t figure out how to properly call it[详细]
2023-03-11 20:31 分类:问答How to manage Loopers and Threads (thread doesn't die anymore!)
I created a class extending Thread to retrieve user location through LocationManager in a non-ui thread. I implemented this as a thread because it has to be started on request and do its work just for[详细]
2023-03-11 16:28 分类:问答