G
G
GadZini2014-06-05 19:24:32
Android
GadZini, 2014-06-05 19:24:32

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

1 answer(s)
B
bimeg, 2014-06-05
@GadZini

public void onClick(View view)
{
    new Handler().postDelayed(new Runnable()
    {
        public void run()
        {
            // notify
        }
    }, millis);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question