One application (for Android) calls Service, made in a separate project.
startService(new Intent("myServ1").putExtra("name", "value"));
First, run the Service, everything is fine. Then I run the program, press the button and get an error.
Here is the log:
01-15 13:29:24.702: W/ActivityManager(482): Permission Denial: Accessing service ComponentInfo{ru.servicekillserver/ru.servicekillserver.MyService} from pid=1220, uid=10086 requires android.permission.BIND_TEXT_SERVICE 01-15 13:29:24.706: W/dalvikvm(1220): threadid=1: thread exiting with uncaught exception (group=0xa4cacb20) It seems to me that something is wrong in the manifest file. And what exactly, I do not understand.
Below part of the manifesto:
<service android:permission="android.permission.BIND_TEXT_SERVICE" android:name="MyService"> <intent-filter> <action android:name="myServ1"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </service>