Closed joshdholtz closed 10 years ago
Great! Thanks :)
@pradyumnakumar That problem is occurring with the dependency on Protocol. Protocol sends off requests in an AsyncTask which has to run on thread where Looper is prepared. I should probably remove that dependency anyway since its really not needed at all.
If you remove the AsyncTask, won't it block the thread till the request is finished? (assuming that you won't be calling "doCaptureEventPost" from a new thread)
Back to you
@pradyumnakumar This should do it for you now. I removed the dependency on Protocol but kept using an AsyncTask. I also used your suggestion for the HandlerThread.
Code is a but messy right now but I will do some cleanup on it later :)
Also fixed all the indentation cause it was pretty messed up.
:+1:
Thanks :+1:
@stoodder @pradyumnakumar @suda
Fixes #4 and Fixes #8