Mainactivity appears to exist twice or more after restarting app : I have an app with an activity sending a broadcast to another activity.
Everything appears to be fine. But if I close my app and open it again,
this broadcasts seems to get send more than once. In fact it gets send
as often I reopened the app. If I print out "this" right before sending the broadcast I get different instances.

Why could this happen? Why is the activity not dying? I checked, onDestroy get's called. BUT I have a background-service, which I dont stop, when the app is closed. Is it therefore? Can I reopen the old activity, when starting the app instead of opening a new one?

Setting launchmode in the Manifest to singleTask or singleInstance didn't work either.

Thanks!