On Sat, Jan 9, 2010 at 3:36 AM, skink <[email protected]> wrote:

> On Jan 9, 12:15 am, dane131 <[email protected]> wrote:
> > ok i will check it out..is there an easier way than that??
> you could use Context#sendBroadcast(Intent)
>

Yeah if the work it is to do is short (not blocking for network or UI or
whatever), this works well and can also supply a result through the version
of sendBroadcast() that returns the result when done.

You can also use startService() to send a command to a service without
needing an aidl interface...  though here getting a result back is a little
more tricky.  It can be accomplished by including a PendingIntent in the
startService() intent extras, but at that point it is probably easier to
bite the bullet and make a real aidl interface.


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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