انتى ممكن تستخدمى كونتر اللى على اساسه بتطكبطى الكونتر وهو دات نفسه جواه
داله لما ينتهى بيعمل حاجه معينه انا ممكن ابعتلك الكود لو تحبى
أسلام محمود
مهندس برمجيات
انفورميكس مصر
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
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
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
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
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,
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
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?
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
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
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
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
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
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
* 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
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
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
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?
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
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
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
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
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
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 */
//
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
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
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.
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
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
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
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
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
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
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
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
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
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
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() {
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
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
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
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
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
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
43 matches
Mail list logo