I have an Activity (A) and a Service (S) that starts with A as follows:
Intent i = new Intent(); i.putExtra("updateInterval", 10); i.setClassName("com.blah", "com.blah.S"); startService(i);
A have the same function in A:
public void someInfoArrived(Info i){...}
Now I want to call A.someInfoArrived (i) from S. Intent.putExtra does not have a version where I could pass a link to an object, etc. .... Please help!
PS: Another way (poll S for new information) is NOT what I need. I found enough information on how to do this.
android callback android-intent android-activity service
nex
source share