You have a couple of options for communicating with a service. You can either create an AIDL interface to communicate via pre-defined methods. (This is usually necessary if your service is running in another process.)
If your process is running in the same process then you can simply communicate with the service via your usual java method/members. All you need to do is play around a bit and it becomes very self-explanatory. As always, stick with the docs: http://developer.android.com/reference/android/app/Service.html On Fri, Oct 8, 2010 at 6:58 AM, DragonFlyJones <[email protected]> wrote: > I'm new to Android and I'm porting an iPhone app I did. I've been > reading up on Android services and they look very useful for the > network component of my app. I assume there is a common pattern for > what I'm trying to do, so here are the details: > > 1. User1 and User2 agree to enter a virtual room. > 2. They send messages to each other and get notified when they receive > a messages. > > I'm using a remote server to handle the communication. So basically, I > need three methods. One to add the users to a room, one to send > messages and one to get messages. Nothing special. > > What I'd like to do is have one service that accepts a few paramaters. > One being which web service method to call, the rest being the > parameters that need to be passed to the respective web services. I'd > prefer this approach to having a different service for each method > call. Any suggestions on the best approach? I'm not clear on how to > pass parameters to services. > > -- > 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx -- 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

