Hi. Currently im developing instant messaging library. Right now i created a Service wich open TCP connection to the server. im thinking about creating a java interface which fill with a callback method that will be executed when event happen in the service (such as new message, buddy list, disconnect etc). user using this library can implement this interface from the activity and pass it back to the service so the activity can handle the event.
I've been reading the thread on http://groups.google.com/group/android-developers/browse_thread/thread/e1863d2822b22a33 and found a little bit information about how service can talk back to activity. some of it use second AIDL as a callback. I also find an example there but sadly its for M3 (currently im using M5 with eclipse) and find trouble porting it. That thread is started form January and somebody wrote that further SDK will support this kind of stuff more. is that true ? my question is, is that the correct method to address my problem, using second AIDL as a callback? or there is another simpler method to solve my problem. any help would be appreciated. Best Regards ahmy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

