Home  >  Forum  >  Android
Post New Query

Android: java.lang.SecurityException: Not allowed to bind to service Intent



Asked on July 26, 2015
I am creating a AIDL application, but getting error as follows.

07-20 05:00:57.710: E/AndroidRuntime(925): Caused by: java.lang.SecurityException: Not allowed to bind to service Intent { act=app.myapp }
07-20 05:00:57.710: E/AndroidRuntime(925):     at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1597)
07-20 05:00:57.710: E/AndroidRuntime(925):     at android.app.ContextImpl.bindService(ContextImpl.java:1561)
07-20 05:00:57.710: E/AndroidRuntime(925):     at android.content.ContextWrapper.bindService(ContextWrapper.java:517)




Replied on July 26, 2015
1. Check if you have action tag with the name "app.myapp" in service tag in AndroidManifest.xml file.
        <service android:name="<your-service-class>" android:process=":remote">
            <intent-filter>
                <action android:name="app.myapp"/>
            </intent-filter>
        </service>

2.  If step one is fine, you should check by uninstalling the application completely and then re-install.


Write Answer








©2019 concretepage.com | Privacy Policy | Contact Us