Re: [android-developers] Timer in Android

2012-05-04 Thread Mady Zaid
انتى ممكن تستخدمى كونتر اللى على اساسه بتطكبطى الكونتر وهو دات نفسه جواه داله لما ينتهى بيعمل حاجه معينه انا ممكن ابعتلك الكود لو تحبى أسلام محمود مهندس برمجيات انفورميكس مصر On May 3, 2012 2:35 AM, Mai Al-Ammar mai.alam...@gmail.com wrote: yes, I set a flag before calling a function which calls

Re: [android-developers] Timer in Android

2012-05-02 Thread Mai Al-Ammar
yes, I set a flag before calling a function which calls the timer, and after calling cancel, I modify the flag value, after calling the function, I checked the flag but this did not work correctly. thanks for your reply On Tue, May 1, 2012 at 5:01 PM, Kristopher Micinski

Re: [android-developers] Timer in Android

2012-05-01 Thread Mark Murphy
This has nothing to do with Android. There is no method on TimerTask to tell you it is canceled, so you will need to track that yourself by some other means. On Mon, Apr 30, 2012 at 8:16 PM, Mai Al-Ammar mai.alam...@gmail.com wrote: Hello every one, I have a simple question about timer in

Re: [android-developers] Timer in Android

2012-05-01 Thread Mai Al-Ammar
I tried to track it by myself but I could not :( could you please help me with an idea of tracking. On Tue, May 1, 2012 at 2:22 PM, Mark Murphy mmur...@commonsware.com wrote: This has nothing to do with Android. There is no method on TimerTask to tell you it is canceled, so you will need to

Re: [android-developers] Timer in Android

2012-05-01 Thread Kristopher Micinski
what did you try? How did it not work? Did you set a flag somewhere before calling cancel? Or what? kris On Tue, May 1, 2012 at 7:49 AM, Mai Al-Ammar mai.alam...@gmail.com wrote: I tried to track it by myself but I could not :( could you please help me with an idea of tracking. On Tue,

[android-developers] Timer in Android

2012-04-30 Thread Mai Al-Ammar
Hello every one, I have a simple question about timer in Android, How can I know if the timer is stopped or not? I have an if statement which see if some condition is satisfied, then it will stop the timer by : if(timerTask != null) timerTask.cancel(); I want to check after calling the timer if

Re: [android-developers] Timer in Android

2012-04-30 Thread James Black
I would create a remote service for the timer, and query it, since it would run independently from the activity. On Apr 30, 2012 8:16 PM, Mai Al-Ammar mai.alam...@gmail.com wrote: Hello every one, I have a simple question about timer in Android, How can I know if the timer is stopped or not?

Re: [android-developers] Timer in Android

2012-04-30 Thread Mai Al-Ammar
Thank you but I don't understand what did you mean :( On Tue, May 1, 2012 at 3:57 AM, James Black planiturth...@gmail.com wrote: I would create a remote service for the timer, and query it, since it would run independently from the activity. On Apr 30, 2012 8:16 PM, Mai Al-Ammar