I have a service, that starts an activity like this:
Intent i = new Intent();
i.setClass(this, MyActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
How to inform the service, that MyActivity has finished?
Any hints appreciated,
Marcus
in OnDestroy method of the activity, either you can invoke a method of the service, if you have service class object, if you don’t have, Use Broadcast Receiver, to send some message, to Service, and in Service implement that Broadcast Receiver.