Wednesday, May 23, 2012

How to have SystemService

There are some defined steps that leads to convert your service as systemService .
By doing this , you can call your service , the way we are calling LocationService , PowerManager and WindowManager etc . (ie  Context.getSystemservice(Context.String)   )


a .We need to Create 3 New files

   1.  Create a Service
   2 . Create wrapper class (Kind of )
   3.  Create aidl file

Refer http://processors.wiki.ti.com/index.php/Android-Adding_SystemService

b. Changes in four files

   1. Changes in Context.java and contextImpl.java
           have to change in getSystemService() API
   2. Changes in Android.mk file
   3.Changes in SystemServer.java file
 

Below table tells that , where to add/modify what .









No comments:

Post a Comment