Not entirely necessary.

It works to use a fully-qualified class name when starting a service in another application:

Intent i = new Intent();
i.setClassName("com.backgroundService", "*com.backgroundService.*MyService");
startService(i);


Oddly enough, ".MyService" does not work.

Make sure that the service is exported in the manifest, either by default, or by explicitly setting exported to true:

http://developer.android.com/reference/android/R.attr.html#exported

-- Kostya

11.11.2010 2:00, Mark Murphy ?????:
On Wed, Nov 10, 2010 at 5:24 PM, kl4232<[email protected]>  wrote:
What information do I need to put in the intent to start a remote
service?
Step #1: Add an<intent-filter>  to the service, with your own custom
action string

Step #2: Use new Intent("whatever the action string is") in your call
to startService()



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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