Hi Luka,

For communication between threads in an Android application, you can use the
Handler object:
http://code.google.com/android/reference/android/os/Handler.html

For sample code for using Handler, you can refer to ApiDemos >
graphics/GLView1.java, graphics/TouchPaint.java, view/List9.java and
app/RemoteService.java.

Thanks,
Megha

On Tue, Apr 15, 2008 at 7:45 AM, WildLuka <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm developing an IM app, using Smack api.  The Smack Api generates a
> few threads, and as I have registered a few listeners on the
> XMPPConnection. Those listeners will have to notify activities, and by
> definition activities run in a different thread. I have not created a
> Service for the XMPPConnection, maybe I should have.
>
> I have defined a few managers in the form of singletons that take care
> of some of the chat functionalities, ie SessionManager, RosterManager
> and so on.
>
> As I understand it, AIDL is for InterProcess Communication, and what I
> need here is just a way of passing data between Threads.  The Activity
> supposed to show incoming messages does that by passing declaring an
> inner class implementing a listener interface and passing the relative
> object to a manger.  the manager never manages to call back the
> activity.
>
> What am I supposed to do ?
>
> your help will be profoundly appreciated.
>
> Luka
> >
>

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to