Normally you could do a:

startService(new Intent(this, MyService.class));

If I understood you right that youd Service is in a different
application (packaged in a different .apk), you can't use the class
directly, but need to map the service to a specific URI and use Intent
filters. I haven't looked into this myself, but I read about it in the
documentation, and I recommend you to do the same:

http://developer.android.com/guide/topics/intents/intents-filters.html#ifs

Good luck!

Jeroen

On 4 aug, 03:57, 汪健飞 <[email protected]> wrote:
> I want startActivity in the service.first I new Intent(),but I don't know
> how to new Intent().Because Activity and Service don't together project.I
> don't know Intent how to find this Activity.
>
> --
> Cary

-- 
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