[android-developers] Re: How do I can start a new Activity after 1 minute?

2011-10-09 Thread viktor
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

[android-developers] Re: How do I can start a new Activity after 1 minute?

2011-10-09 Thread Zwiebel
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,

Re: [android-developers] Re: How do I can start a new Activity after 1 minute?

2011-10-09 Thread Mark Murphy
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()

[android-developers] Re: How do I can start a new Activity after 1 minute?

2011-10-09 Thread Zwiebel
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

Re: [android-developers] Re: How do I can start a new Activity after 1 minute?

2011-10-09 Thread Mark Murphy
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

[android-developers] Re: How do I can start a new Activity after 1 minute?

2011-10-09 Thread Zwiebel
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

Re: [android-developers] Re: How do I can start a new Activity after 1 minute?

2011-10-09 Thread Mark Murphy
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)

[android-developers] Re: How do I can start a new Activity after 1 minute?

2011-10-09 Thread Zwiebel
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