user430926
user430926

Reputation: 4057

Kill activity in thread

How can I kill Android activity from asynchronous thread? In my android application, I start another activity using startActivity. Is there anyway for me to kill that activity I started after several minutes?

Or is there any way beside using thread?

Upvotes: 3

Views: 950

Answers (2)

user493244
user493244

Reputation: 919

I think you have to run DT activity in a background process even though you won't have control over your application.

Upvotes: 2

Navaneeth Sen
Navaneeth Sen

Reputation: 6476


Hope the below link will help you to understand how to solve your task :
BroadcastReceiver

Upvotes: 0

Related Questions