timer

  1. gezueb

    Android Question Run a service every hour while phone sleeps

    I use a service to get the sea level air pressure (QNH) from the internet every hour and store it into a ring buffer. I used an example from the forum to repetitively schedule this cyclic process with phone wake state in partial lock. I removed the call to StartServiceat as Erel said it would...
  2. erraticless

    Android Question Freezing app while phone screen off

    Hello, When i run my project (an activity with a service) in release mode in my Samsung Galaxy S20, after about 3 minutes of screen turned off, the complete app just freezes for a few seconds (or even minutes sometimes) until i turn on screen again, and then the program continue working...
  3. behnam_tr

    Android Question [Solved] countdown Timer in Scrollview

    Hi everyone I want to use the countdown timer inside the scrollview, but after several hours of trying, I did not get the result! The times will be different and must be set when creating, for example, one should be 1 hour, one should be 7 hours and... And the important thing is that an...
  4. A

    Android Question B4A stopwatch.

    Can anyone help in coding a basic stopwatch?
  5. N

    Android Question Count Up Timer

    hello, can you help me with the code for a count up timer that when a button is clicked it will start counting up from 00:00:00 HH:mm:ss and will only stop if the user click the button again. Thanks
  6. T

    Android Question Run Timer in sleep LCD or power buton switch.

    Hi, I need an advice. I have an application where there is a timer and after a while it communicates with the server and displays notifications on the screen. Problem: When I press the power button, the application jumps to "Activity_Pause" and the timer does not work. When the LCD screen...
  7. T

    Android Question Timer Stops

    [CODE lang="b4x" title="timer" highlight=""6,7""]Sub timer1_Tick sectimer= sectimer+1 If sectimer==60 Then sectimer= 0 End If currentSec.Text=sectimer lbltimer.Text= sectimer End Sub[/CODE] Timer Stops when I press a button in the activity, Any Help
  8. moty22

    Share My Creation LED Egg Timer

    Seven segments LED display, Arduino Uno or Nano egg timer. Seconds displayed, minutes are set by buttons. Also buttons for start and stop, pressing together MIN and MINx10 resets the display. Alarm at the end of count down switches on a 5VDC buzzer or a LED. The code multiplexes the 4 digits at...
  9. rleiman

    Android Question [SOLVED] - Timer is paused randomly when phone is not connected to our computer to display the logs

    Greetings, Can you look at this small linked B4A project? It's a simple project that has a ticking timer that ticks in the background once every second. This works only when the phone is connected to my computer and I watch the logs so the ticks in B4A with or without the phones screen turned...
  10. Schakalaka

    Share My Creation click & claim - free bitcoin faucet

    Hi everyone. after several months of work, forum posts, problems solved and money spent, I finally finished my last application in b4x It names Click & Claim, and it is a free faucet for android. The feature that distinguishes this app from the others, in addition to working, is that it saves...
  11. A

    iOS Question Will it be accepted in Apple Store?

    Hi all. I've been working on my project that requires the app to run the timer when the app is in Inactive mode - when event App_Inactive fired. Please see my main module code. I also attached my project. Sub Process_Globals 'These global variables will be declared once when the...
  12. Programing Center

    Android Question Check is activity Resuming or no?

    Hello i using the PersianTimer library . This Library can Count Down number all the time! it means when activity is Paused, the timer is working too. so i use this code Private Sub timer_onTick(Tag As String,TimeUntil As Int) Time_Finish = TimeUntil Dim seconds, minutes As Int...
  13. saeed10051

    Android Question Phone screen timeout problem

    Hi, I am making an application, using a timer, the application timer works for 60 seconds but before the 60 seconds pass my phone screen time out and turn off as the screen time out is 45 seconds. How can i keep the screen on until the timer is working
  14. D

    Android Question Re-initialize timers question

    Hi, Guys Can someone clarify if it is OK to re-initializer a timer several times within the same activity i.e. TimerName.initialize(....) Sorry about the basic question, but I am sure I read somewhere on forum or in the documentation (an now can't find it) that timers should only be...
  15. BugNot

    Android Question InterstitialAd Disable back button

    Hello, I've problem with back button... When an admob Interstitial ad is displayed, if you press the back button, you can close the ad before the ad countdown ends. I tried with a timer but the activity pauses and the timer does not work. How do I fix this? Thank you
  16. A

    Android Question Timer and GPS timer at the same time in service

    Hi. I'm trying to have two timers working at the same time (GPS timer and another timer). But after a while, only keep working the another timer, and the GPS timer is OFF. it may be because one timer cancels the other? I attach the log (GPS Recibido is when i reseive GPS_LocationChanged and...
  17. A

    Android Question Problem with a timer

    Hi all. I have a small app (this is just an example) that does nothing but runs a timer. It also has 2 activities and my code in Starter runs a timer that checks if both of theses activities are paused. If so - let's wait for 10 seconds a show a message in a log Log("Log Out") The idea is...
  18. rossati

    Android Question Wait for timer event

    I would like to execute some code and wait for it to complete, but I can't use Wait For sub because my application is not monolithic, so I'm trying the Timer, that is when the application ends, I start a timer for some time hoping that this may be intercepted. Unfortunately this does not work...
  19. C

    B4J Question Timer Tick

    Hi everyone, I'm using B4J for the first time and im struggling a lot. I have to implement a programm for traffic lights based on a tcp/ip connection. I managed to do the connection thing. Now I want to program the traffic light. I want to use a simple timer. This is what i've got so far...
  20. Olivier Zeegers

    Android Question Timer

    I am trying to display a stopwatch to the user. The moment the user pushes the record button and want to display in a label the time elapsed in format "hh:mm:ss:ms" and see the time running. I assume one has to create a Timer Object and set it to enabled when the button is pressed and then in...
Top