You can look in SystemService.java and the related classes it uses for lots and lots of examples.
On Tue, Dec 8, 2009 at 9:54 PM, Paturi <[email protected]> wrote: > > I have a doubt regarding the fourth step. > How can I publish the IBinder interface with the private ServiceManger > API? > Please provide me with some example. > > > On Dec 9, 4:11 am, Dianne Hackborn <[email protected]> wrote: > > The way to do this without modifying the framework is to put your > > implementation in an .apk that: > > > > 1. Declares a shared user ID with the system process, and that its > > components will run in the system process. > > 2. Has a Service component that implements your "system" service. > > 3. Has an intent receiver for BOOT_COMPLETED that, when run, starts the > > service. > > 4. In the Service implementation publishes its IBinder interface with the > > private ServiceManager API. > > > > You can look at frameworks/base/packages/SettingsProvider for an example > of > > an .apk that runs in the system process. > > > > > > > > On Tue, Dec 8, 2009 at 4:33 AM, Paturi <[email protected]> wrote: > > > > > HI > > > > > I would like to register native service with system manager and > > > publish its IBinder interface with service manager. > > > I want my client to retrieve the service interface through Java code > > > and invoke the methods in the service. Please help me how I can > > > accomplish this without changing the android framework. Please provide > > > me with an example if possible since I am unclear with IBinder concept > > > in Android. > > > > > Thanks > > > > > -- > > > unsubscribe: > > > [email protected]<android-porting%[email protected]> > <android-porting%[email protected]<android-porting%[email protected]> > > > > > website:http://groups.google.com/group/android-porting > > > > -- > > 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. > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- 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. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
