Kill activity in thread

How can I kill Android activityfrom an asynchronous thread? In my Android app, I run another action using startActivity. Anyway, for me to kill this activity, I started in a few minutes?

Or is there a way to use the stream?

+3
source share
2 answers

I think you need to run DT in the background, even if you do not control your application.

+2
source


Hope the link below helps you understand how to solve your problem:
BroadcastReceiver

0
source

Source: https://habr.com/ru/post/1766685/


All Articles