[android-developers] Re: Timer

2011-05-24 Thread neha
hey You can use Handler class or chronometer. On May 24, 8:16 am, shanmu nathan win.sha...@gmail.com wrote: 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

[android-developers] Re: Timer task not being performed accurately

2011-02-11 Thread Mike
Hi Parashar, If you really need to render with a high frame rate, I would recommend using SurfaceView. You can still draw on a Canvas object, but it is made for this purpose. http://developer.android.com/guide/topics/graphics/index.html#on-surfaceview Regards, - Mike On Feb 4, 2:15 pm,

[android-developers] Re: Timer + App updated

2010-09-28 Thread Will
Thanks Treking, but as you though, it doesn't work. Does someone has another idea ? Thanks On 27 sep, 23:07, TreKing treking...@gmail.com wrote: 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.

Re: [android-developers] Re: Timer + App updated

2010-09-28 Thread Kostya Vasilyev
You might have better luck with AlarmManager. Using Java Timer objects is unreliable even without package updates, since Android can terminate your application's process. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.09.2010 0:17 пользователь Will w.rou...@gmail.com написал: Thanks

Re: [android-developers] Re: Timer in an App

2010-09-09 Thread Kostya Vasilyev
09.09.2010 8:32, chetan пишет: Now my question , would the set alarm persist after reboot of phone ? Thanks Chetan Chauhan No, it won't. The way handle it is to implement code to receive BOOT_COMPLETED broadcast, and start the alarm (and perhaps the service) then. -- Kostya Vasilyev --

[android-developers] Re: Timer in an App

2010-09-08 Thread chetan
Hi , I have created an app with using Alarm Manager and added the 7 min alarm. Find the code below. package com.example.ReminderTest; import java.util.Calendar; public class ReminderTest extends Activity implements OnClickListener{ /** Called when the activity is first created. */

[android-developers] Re: Timer in an App

2010-08-31 Thread parag
check this out http://justcallmebrian.com/?p=129 its a very useful sample On Aug 31, 12:55 pm, Mark Murphy mmur...@commonsware.com wrote: 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

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

2010-03-28 Thread Dianne Hackborn
On Sat, Mar 27, 2010 at 4:00 AM, Mark Murphy mmur...@commonsware.comwrote: Neilz wrote: Is there a way, to have View elements (TextView, Button, whatever) that are not run on the main UI thread? No. Windows can run in their own threads, all views inside of a particular window must run in

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

2010-03-27 Thread Neilz
Ok, reviving an older thread. Is there a way, to have View elements (TextView, Button, whatever) that are not run on the main UI thread? What about if I set up a game thread, with its own View (like in the LunarLander sample, for instance) and then create View elements on the fly and attach them

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

2010-03-27 Thread Mark Murphy
Neilz wrote: Is there a way, to have View elements (TextView, Button, whatever) that are not run on the main UI thread? No. What about if I set up a game thread, with its own View (like in the LunarLander sample, for instance) and then create View elements on the fly and attach them to the

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

2010-03-27 Thread Kevin Duffey
The stutter, from what I've picked up on other threads, is as Mark said, due to various other tasks, apps, and more likely garbage collection kicking in randomly. One thing that seems to be a common thread for most real-time like UI updating games is to do some sort of time based setup. I forget

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

2010-03-04 Thread Neilz
Thanks Mark, that makes sense. So basically, I should be implementing a View with its own draw() method, run in a thread, as in the various game examples. I presume from your comment below that using postDelayed() isn't really going to solve my problem. On Mar 4, 4:20 pm, Mark Murphy

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

2010-03-04 Thread Mark Murphy
Neilz wrote: I presume from your comment below that using postDelayed() isn't really going to solve my problem. No, it'd just negate the need for a separate Timer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training:

[android-developers] Re: Timer problem

2010-02-09 Thread skink
On Feb 9, 3:41 pm, satish bhoyar getsatonl...@gmail.com wrote: 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  

Re: [android-developers] Re: Timer problem

2010-02-09 Thread satish bhoyar
Do u have any code snippet or any link for this info. please send.. thanks, satish On Tue, Feb 9, 2010 at 9:06 PM, skink psk...@gmail.com wrote: On Feb 9, 3:41 pm, satish bhoyar getsatonl...@gmail.com wrote: Hi all, I am trying to work with Timer. My use case is I am

[android-developers] Re: Timer

2009-12-03 Thread Beth
Sorry, Can't do it! You need to track a timer when you set it. There's no way to poll the system. You can also notice that a set timer does not persist through a phone boot and would need to be reset in that case. On Dec 3, 4:22 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, How to

[android-developers] Re: Timer not available

2009-08-15 Thread Mark Murphy
Honest wrote: 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. That blog post is nearly two years old. With Android, any tutorial over a year old is already suspect. Timer/TimerTask are

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

2009-04-27 Thread mcmc
great, thanks! :) and for others who may be interested, you can get it in milliseconds too: System.currentTimeMillis(); On Apr 24, 10:24 am, Mark Anacker closecr...@riven.tzo.com wrote: Well, you could grab the System.nanoTime() value at the start of the block, again at the end, and

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

2009-04-24 Thread Mark Anacker
Well, you could grab the System.nanoTime() value at the start of the block, again at the end, and subtract... On Apr 24, 9:43 am, mcmc manni...@gmail.com wrote: 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