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
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,
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.
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
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 --
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. */
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
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
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
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
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
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
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:
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
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
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
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
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
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
19 matches
Mail list logo