CountDownTimer, help you, you can stop timer anytime.
On 9 Жов, 13:18, Zwiebel hunzwie...@gmail.com wrote:
I have a button. If the user clicks on it, I want to start a new
Activity after 1 minute. Between the click and the new activity, the
user can click on an another button more times. How I
Ok thanks I could make it now with it, I had a problem in my code. Now
I have an another problem: Even if the user exit the program in THE
minute, my Activity will appear itself. How can I do against it?
On okt. 9, 12:22, Mark Murphy mmur...@commonsware.com wrote:
On Sun, Oct 9, 2011 at 6:18 AM,
On Sun, Oct 9, 2011 at 7:26 AM, Zwiebel hunzwie...@gmail.com wrote:
Ok thanks I could make it now with it, I had a problem in my code. Now
I have an another problem: Even if the user exit the program in THE
minute, my Activity will appear itself. How can I do against it?
Call removeCallbacks()
I tried to call removeCallbacks in onPause, like this:
removeCallbacks(r1); but it doesn't good.
Here is my code:
public class Screen extends Activity{
int counter = 0;
Intent result;
Runnable r1;
@Override
protected void onCreate(Bundle
On Sun, Oct 9, 2011 at 8:17 AM, Zwiebel hunzwie...@gmail.com wrote:
I tried to call removeCallbacks in onPause, like this:
removeCallbacks(r1); but it doesn't good.
What does doesn't good mean?
Another possibility is for you to set yourself a boolean flag that
your Runnable examines, and
It want me to create a new method removeCallbacks(Runnable)
On okt. 9, 14:24, Mark Murphy mmur...@commonsware.com wrote:
On Sun, Oct 9, 2011 at 8:17 AM, Zwiebel hunzwie...@gmail.com wrote:
I tried to call removeCallbacks in onPause, like this:
removeCallbacks(r1); but it doesn't good.
What
On Sun, Oct 9, 2011 at 9:10 AM, Zwiebel hunzwie...@gmail.com wrote:
It want me to create a new method removeCallbacks(Runnable)
removeCallbacks() is a method on View. Just as you called
postDelayed() on a View, you call removeCallbacks() on a View.
--
Mark Murphy (a Commons Guy)
Really thanks for helps! I could make it with it! :)
On okt. 9, 15:23, Mark Murphy mmur...@commonsware.com wrote:
On Sun, Oct 9, 2011 at 9:10 AM, Zwiebel hunzwie...@gmail.com wrote:
It want me to create a new method removeCallbacks(Runnable)
removeCallbacks() is a method on View. Just as you
8 matches
Mail list logo