Please post questions about modifying the platform to android-porting. On Thu, Apr 16, 2009 at 4:15 AM, x7 <tan_...@live.com> wrote:
> > Hi All, > I am getting below error when ever i am trying to register callback > function. > > E/AndroidRuntime( 376): Caused by: java.lang.SecurityException: > Binder invocation to an incorrect interface > E/AndroidRuntime( 376): at android.os.Parcel.readException > (Parcel.java:1234) > E/AndroidRuntime( 376): at android.os.Parcel.readException > (Parcel.java:1222) > E/AndroidRuntime( 376): at com.android.phone.insterface.IMYService > $Stub$Proxy.registerCallback(IADService.java:125) > E/AndroidRuntime( 376): at com.android.phone.PhoneApp.onCreate > (PhoneApp.java:322) > E/AndroidRuntime( 376): at > android.app.Instrumentation.callApplicationOnCreate > (Instrumentation.java:1045) > E/AndroidRuntime( 376): at > android.app.ActivityThread.handleBindApplication(ActivityThread.java: > 3434) > > IMYService is a service interface, I would like to run it > automatically when Android starting. > so,I add this service(MYService) to ServiceManager in SystemServer.java > (com.android.server) like this: > > try { > Log.i(TAG, "Starting HeadsetObserver"); > // Listen for wired headset changes > ServiceManager.addService("MYSERVICE",new > com.x7.android.service.MYService(context)); > } catch (Throwable e) { > Log.e(TAG, "Failure starting HeadsetObserver", e); > } > > but I am getting the error i mentioned during the bindService call > when I call this service. > Could you please let me know the steps mainly I have to runing service > automatically when Android starting.and this service will used > sqlite,so it would be great if you could let me know what all > permission short > of thing to take care. > > thanks. > > > > -- Dianne Hackborn Android framework engineer hack...@android.com 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---