I have a background service running and I would like to use AIDL to be able to communicate with 3rd party apps . I experimented with an app communication using AIDL and it's working great .
my question is what if I want to communicate with another app, how do I filter which app is binding at the moment?
I have tried filtering with:
@Override
public IBinder onBind(Intent intent) {
// TODO Auto-generated method stub
Log.d("INTENT",intent.getDataString())
return (new IpPortBinder(getApplicationContext()));
}
but it crashes, because intent.getDataString() is null for some reason. so which method should I use here?