Reputation: 3174
I have designed 2 applications,
1) Which is a service
and is running in the background
.
2) Which runs in the foreground, which just has an EditText
. now, i want to insert some values into EditText using the service. In logs i found, the error not allowed to start intent without permissions .INJECT_EVENTS
I have put the permissions in the manifest file of both the apps, it's still giving me a problem.
Upvotes: 1
Views: 660
Reputation: 1006984
That is because ordinary Android SDK applications cannot hold the INJECT_EVENTS
permission. That can only be held by applications signed by the same signing key as was used to sign the firmware.
Moreover, this is a really strange way to have two applications communicate. Android has a wide range of IPC options -- please use one. Or, do not make them be two separate applications.
Upvotes: 1