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.

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

Reply via email to