tags:

views:

16

answers:

1

Hi, I am quite new about android platform. I want to export my service to be public used. I find something on developer doc

android:exported Whether or not components of other applications can invoke the service or interact with it — "true" if they can, and "false" if not. When the value is "false", only components of the same application or applications with the same user ID can start the service or bind to it.

but i dont understand it Can anyone show me a brief example of how to use it?

many thx

A: 

You can will find that the sample applications SampleSyncAdapter, CubeLiveWallpaper, and VoiceRecognitionService (new in level 8) all export services for public use. You can look through your sdk's samples/ directory. Eclipse can create a new project using the existing samples (from the File/New/Android Project dialog).

Charles Merriam