I am trying to make a request to another service (another app), but getting exception:
java.lang.IllegalArgumentException:
Service Intent must be explicit: Intent { act=com.myApp.DoAction }
I did some readings and still confused:
Here, it's written: Since Android 5.0 (Lollipop) bindService() must always be called with an explicit intent.
Here, it's written: Implicit intents do not name a specific component, but instead declare a general action to perform, which allows a component from another app to handle it
What will be the right intent? What will be the right example? I am doing:
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setAction("com.anotherApp.MyService");
// binding to remote service
bindService(intent, AddServiceConnection, Service.BIND_AUTO_CREATE);
Many many thanks for help.