Hi, All. I faced a problem that Security Exception has occurred when my application called aidl methods frequently. The application is calling 3~5 times per sec, and 2 thread in it try to call each other application. My source is here.
private ServiceConnection mConnection = new ServiceConnection() { public void onServiceConnected(ComponentName name, IBinder service) { mImService = IImService.Stub.asInterface(service) } } mContext.bindService(new Intent ("com.lge.ims.ACTION_BIND_IMSERVICE"), mConnection, Context.BIND_AUTO_CREATE); The log is like this. In enforceInterface() function, aidl class is not recognized correctly. WARN/Parcel(2334): **** enforceInterface() expected 'com.lge.ims.IImFileListener' but read '' ERROR/AndroidRuntime(2208): FATAL EXCEPTION: ImFileListenerThread ERROR/AndroidRuntime(2208): java.lang.SecurityException: Binder invocation to an incorrect interface ERROR/AndroidRuntime(2208): at android.os.Parcel.readException(Parcel.java:1247) ERROR/AndroidRuntime(2208): at android.os.Parcel.readException(Parcel.java:1235) ERROR/AndroidRuntime(2208): at com.lge.ims.IImFileListener$Stub $Proxy.started(IImFileListener.java:156) ERROR/AndroidRuntime(2208): at com.lge.ims.ImFileListenerThread $1.handleMessage(ImFileListenerThread.java:103) ERROR/AndroidRuntime(2208): at android.os.Handler.dispatchMessage(Handler.java:99) ERROR/AndroidRuntime(2208): at android.os.Looper.loop(Looper.java: 123) ERROR/AndroidRuntime(2208): at com.lge.ims.ImFileListenerThread.run(ImFileListenerThread.java:213) Can someone plz help me know the reason? I'll wait for your mercy :) Thanks & Regards, Seongmoo Kim -- 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