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

[android-developers] timer on sip calling

2012-02-24 Thread Jagruti Sangani
hello, I want to start the timer when the call will establish and the timer will stop when the call will end by other party.Can anybody know how to do this.same as when the call is come in our mobile and the second is display continuesly till the call will end. -- You received this message

Re: [android-developers] timer on sip calling

2012-02-24 Thread Uberall, Android
Dear Jagruti madam, You can do it by using the PhoneStateListener call and start timer when call receives and call end. Now u can use it by overriding the onCallStateChanged() method for your purpose. I hope it will be sufficient for you. Thanks Regards Prashant B Lal. On 24-02-2012

Re: [android-developers] timer,thread,imageview in android

2012-02-04 Thread Farhan Tariq
explain your requirements please... from what i can get from your subject, what you could do is have an async task download images and update an imageView. Call that imageView from a thread that sleeps for 5 seconds in a while loop... something rughly like this (it has a Lot of errors, wrote it

[android-developers] timer,thread,imageview in android

2012-02-03 Thread Salih Selametoglu
hello my friends, i wanna create image every five secends and destroy it after 3 seconds. How can i do it? can you help me? -- Salih SELAMETOĞLU Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı İstanbul Üni. Bil. Müh. 4. Sınıf http://www.linkgizle.com

[android-developers] timer popup sound sometime delayed when phone enters locked state

2011-10-18 Thread John Goche
Hello, I am using a timer to popup a window on an android smartphone (LG Nexus One). However I come across the following problem from time to time: sometimes when the phone is locked and is in standby mode because I haven't touched it for a while the popup's ringtone does not start until I

Re: [android-developers] timer for implementing projectile motion

2011-10-17 Thread Justin Anderson
* Can anyone please suggest me the type of android's predefined timer to be used for implementing projectile motion or do I need to write a custom timer.* java.util.Timer java.util.TimerTask android.os.CountDownTimer *Note: I found these by going to developer.android.com and typing Timer in

[android-developers] timer for implementing projectile motion

2011-10-16 Thread ruchira
Can anyone please suggest me the type of android's predefined timer to be used for implementing projectile motion or do I need to write a custom timer.Also please let me know the range of initial velocity V which can be used for assumption. -- You received this message because you are

[android-developers] Timer problem

2011-07-19 Thread Salih Selametoglu
Hello every android :) i have got a problem that is about timer. I wanna change image every 10 seconds but i have not done yet. I can try to use Timer but i couldnt. Is there any body to help me? Salih SELAMETOĞLU İstanbul University Computer Engineering - #4 -- You received this message

Re: [android-developers] Timer problem

2011-07-19 Thread TreKing
On Tue, Jul 19, 2011 at 8:59 AM, Salih Selametoglu barbooni...@gmail.comwrote: I wanna change image every 10 seconds but i have not done yet. I can try to use Timer but i couldnt. Why couldn't you?

Re: [android-developers] Timer problem

2011-07-19 Thread Salih Selametoglu
i think i am writing wrong code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Timer problem

2011-07-19 Thread Salih Selametoglu
i write code but not re-run. Only it once runs You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Timer problem

2011-07-19 Thread Salih Selametoglu
ok. It have been solved. I used Runnable and Handler class. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Timer problem

2011-07-19 Thread TreKing
You're welcome. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the

[android-developers] Timer

2011-05-30 Thread khanh_qhi™
Hi there, I need a counter time in my application. Is there any time Counter? -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

Re: [android-developers] Timer

2011-05-30 Thread Tiago Maluta
Did you checked? http://developer.android.com/reference/java/util/Timer.html http://developer.android.com/reference/java/util/TimerTask.html import java.util.Timer; import java.util.TimerTask; // ... Timer timer1 = new Timer(); timer1.schedule(new Task(), 0, 3*1000); /* 3 seconds */ //

[android-developers] Timer

2011-05-24 Thread shanmu nathan
Hi guys, i need to show the stop watch when i clicks the button.. can anybody help me.. -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.com -- You received this message because you are subscribed

Re: [android-developers] Timer

2011-05-24 Thread Mohammed Hossain Doula
http://developer.android.com/resources/articles/timed-ui-updates.html http://developer.android.com/resources/articles/timed-ui-updates.html http://steve.odyfamily.com/?p=12 On Tue, May 24, 2011 at 1:16 PM, shanmu nathan win.sha...@gmail.com wrote: Hi guys, i need to show the stop

[android-developers] Timer task not being performed accurately

2011-02-11 Thread Parashar
I am trying to perform basic task of rotating a canvas 20 times a second using timer but it doesn't seem to be working properly and its lagging. for example, if I rotate rectangle 0.3 degrees per 50 ms it should rotate 6 degree in on second, but that is not the case. It really slow in rotation.

[android-developers] Timer Question

2011-01-25 Thread bklik
I have lots of issues with my egg timer application. I started by just writing the application all in an action. That of course didn't work because once the user left the application, it would get garbage collected after a while and longer timers would fail. So, I tried a Service. My main

Re: [android-developers] Timer Question

2011-01-25 Thread Kostya Vasilyev
Using a Java Timer in an Android application has some drawbacks: one, it invokes the callback on a worker thread, two, it stops if the process is killed. Take a look at AlarmManager - it's reliable even if the application is killed, and uses an Android-specific notification mechanism when it

Re: [android-developers] Timer Question

2011-01-25 Thread Marcin Orlowski
On 25 January 2011 17:44, bklik brenton.k...@gmail.com wrote: So, I tried a Service. My main Activity handles all the UI stuff and binds to a Service. The user enters in the amount of time they want the egg timer to fun for, and that time gets handed off to the service. You definitely are

[android-developers] Timer + App updated

2010-09-27 Thread Will
Hi, I would like to know how to intercept the event that the apk has been updated in order to launch again my Timer. Indeed, I have a Timer wich is scheduledAtFixedRate, but when my App is updated through the market, the timer is killed ; and if the user doesn't launch the App, the timer is not

Re: [android-developers] Timer + App updated

2010-09-27 Thread TreKing
On Mon, Sep 27, 2010 at 3:07 PM, Will w.rou...@gmail.com wrote: Is there an event to catch the App updated ? I searched, tried, but nothing. http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REPLACED Though I somehow doubt the app being installed will itself

[android-developers] Timer in an App

2010-08-31 Thread chetan
Hi All, I am creating an App in which i need to add a timer for postpone the one event for 1 hr and start same event after 1 hr , so i want to know how i can implement the same. Are there any Timer api's and handling of them in android. Thanks Chetan Chauhan -- You received this

Re: [android-developers] Timer in an App

2010-08-31 Thread Mark Murphy
Use AlarmManager. On Tue, Aug 31, 2010 at 2:02 AM, chetan chetanchauha...@gmail.com wrote: Hi All,           I am creating an App in which i need to add a timer for postpone the one event for 1 hr and start same event after 1 hr , so i want to know how i can implement the same. Are there any

[android-developers] Timer / threads / reliability

2010-03-04 Thread Neilz
Hi all. I have an activity that uses a Timer (java.util.Timer) to control the display. I set it off to repeat its run() method every second or so. When it runs, it updates some View elements. As Timer runs in its own thread, I assumed this would be reliable. But I notice that sometimes there is a

Re: [android-developers] Timer / threads / reliability

2010-03-04 Thread Mark Murphy
Neilz wrote: Hi all. I have an activity that uses a Timer (java.util.Timer) to control the display. I set it off to repeat its run() method every second or so. When it runs, it updates some View elements. As Timer runs in its own thread, I assumed this would be reliable. But I notice that

[android-developers] Timer cause memory leak

2010-02-26 Thread James Wang
I have three activities:MyFirstActivity(click)-MyActivity(timer)- MyNextActivity. And I noticed Timer cause MyActivity memory leak when digging through hprof in Eclipse. Below is my codes: public class MyActivity extends Activity { private Timer timer = new Timer(); protected void

[android-developers] Timer problem

2010-02-09 Thread satish bhoyar
Hi all, I am trying to work with Timer. My use case is I am dynamically updating the Layout after some delay i will be loading the new updated layout. I put the Timer but it is not working correctly this is the timer code timer.schedule(new TimerTask() { public void run() {

[android-developers] Timer and Timer Task

2010-01-22 Thread nikhil
I am using a timer in my app. I wish to vary the interval or period with which the timer task runs. Like when my app is being used the timer task is scheduled at say 1 sec while the moment user exits the app the service changes the timer to 5 seconds. Currently, I am cancelling the previous timer

[android-developers] Timer

2009-12-03 Thread Sasikumar.S
Hi, How to get whether timer is runnning or not?... That means How to get whether timer is scheduled or not?... -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Timer not available

2009-08-14 Thread Honest
Hello, I came to know about Timer in android. I read http://android-developers.blogspot.com/2007/11/stitch-in-time.html that Timer is not available at Runtime. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Timer TimerTask latency

2009-07-17 Thread Jason Proctor
seems like i'm running into some latency issues with the regular Java Timer and TimerTask classes. does Android have preferred classes for doing the same kind of thing? tx -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Timer doesn't work

2009-05-04 Thread kaloer
Hi, I am using a Timer in my android application, but i can't get it to work. When I start my application the Timer simply does not start. The application continues but does not update. The long toStart finds the number of seconds left of the current minute, and thereafter the period is set to

[android-developers] Timer Help (Time Stamp my code)

2009-04-24 Thread mcmc
Hi, I'm trying to put a timer in my code to determine the amount of time it takes to execute a block of code. I've tried googling up some ideas, but they are all related to scheduling tasks, which is not what I want. I want to, perhaps, place a time stamp in different parts of my code. How can