Just start another thread :) AsyncTask is tied to the UI thread, if
you already have your own thread, you cannot use AsyncTask.

On Wed, Jul 29, 2009 at 9:16 AM, f_heft<[email protected]> wrote:
>
> Hello,
>
> I'm developing a game based on SurfaceView and a game thread for the
> whole game thing (calculating/drawing/...).
> Now I want to do some HTTP requests triggered on events inside the
> thread. They should of course be asynchronous, so the game doesn't
> stop.
> I found AsyncTask to be a neat way to do this but I'm having trouble
> implementing this at the moment. Maybe I misunderstood the concept of
> AsyncTask , I don't know .. it just drives me nuts as I read docs and
> blogs and still I don't get it. So sorry if that's a dumb question but
> I'm mad of thinking about it.
>
> --> What would be "best practice" to do asynchronous things out of a
> thread?
>
> Regards, F Heft
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to