Categories
Android - how to create a thread when a button is clicked?
How, when a button is clicked, create a thread that will throw a notification after a certain amount of time?
Answer the question
In order to leave comments, you need to log in
public void onClick(View view) { new Handler().postDelayed(new Runnable() { public void run() { // notify } }, millis); }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question