1,683 questions
-1
votes
1
answer
52
views
android implement expire duration change using countdown timer even when app in background
I have an e commerce app in which I have a list of elements which comes from backend, each item has its expiration duration like (5 minutes) for showing discount.
Each time I call api, it sends me ...
1
vote
1
answer
62
views
Android Kotlin how kill a timer or countdowntimer fast?
The problem: if I smash the button, I ended up with multiple timers.
lateinit var timer1: CountDownTimer
...
Button(onClick = {
timer1 = object: CountDownTimer(20000000, 1000) {
...
0
votes
2
answers
53
views
Implementing countdown in angular causes browser to load infinitely
This code works fine for displaying the timer, when i open it after the browser is loaded properly, in other words, if i open my profile section first and wait for the browser to finish loading and ...
0
votes
1
answer
83
views
Set start time of my preference for expo timer
I have a working circle timer in an expo snack. It's made up of 2 timers, when one finishes the next one starts and they go in loop. Each one has it's independent time.
I would like to add an initial ...
1
vote
0
answers
65
views
Issues Testing Web Worker with Timers in Jest – How to Receive Correct Countdown Messages?
export const timerWorker = () => {
let timerStart = false;
let intervalId = null;
let timeLeft = 0;
self.onmessage = (e) => {
const { data = {} } = e;
const {...
0
votes
0
answers
35
views
Kotlin notification manager and canvas draw updates stop
I have a foreground service that works as a countdown timer for the upcoming prayer. I use canvas draw to add customized typeface.
My problem is after about two minutes, the notification manager stops ...
0
votes
1
answer
309
views
Implement countdown timer in Glance widget
I need to implement a countdown timer in a Glance widget, that should be updated every second. At the bare minimum, every minute.
What would be the best approach for this using Jetpack Compose Glance ...
0
votes
0
answers
37
views
I'm unable to delete the current line and print in the same line again [duplicate]
I want to delete the output in the current line and then print in the same line again in Python. I'm basically creating a 25s timer with the format:
Time remaining:
The code that I've written works ...
0
votes
0
answers
81
views
How to make a CountDownTimer that runs only one time Android Studio
I am trying to make a CountDownTimer for my Android app, but every time I try to start it using just timer.start(), it starts multiple timers. I don't know why.
My code for this is:
fun DissapearSkip()...
0
votes
1
answer
136
views
Android background service runs but the timer inside it stops
Android 14, And Studio Hedgehog, the app records barometric pressure. To keep the app running (or appear to the user to run), the activity starts and binds to a dedicated background service. So far so ...
0
votes
1
answer
93
views
How to stop the Timer after specific amount of time?
In my below code have start the Timer in ngOnInit() and I want to stop the timer when user complete the test by clicking the completeTest() method,
in below code I have set the notification for 1-1 ...
0
votes
1
answer
84
views
Cannot get this timer to restart
I'm building a bot that takes sound from a game, cross refrences it with a target sound, and if a target sound is detected does some actions.
I have a timer that runs from the time I press "start&...
0
votes
1
answer
65
views
How to make timer on sortable in jQuery UI
I need to make a puzzle game with timer. So it should start with start button or with dragging one of my elements to the second block (made with sortable).
I have a working time function called 'timer'...
2
votes
2
answers
1k
views
Countdown timer Java JavaFX
Can someone please help me make a countdown timer in JavaFX? I need the time to be taken from a label (the time is set by a slider) and I want to see the minutes and seconds remaining every second. ...
0
votes
1
answer
68
views
Countdown timer in Flcikers in RecyclerView
I have two tab in my fragment.In my recyclerview there are two viewtypes, those two viewtype populates on depending of press in chips.On create view it works fine. But when I come back from the second ...
0
votes
0
answers
53
views
How to loop two sequential counters and display them cycle number of the loop
I have an application that needs to display on an HTML-screen two countdown timers, one after the other, each countdown timer has its own duration taken from a database.
This sequence of displaying ...
-2
votes
1
answer
378
views
How to make a countdown timer using Time Remaining [closed]
I want to implement a countdown timer, based on the current time and end time.
For example:
Current time: 20:30:30
End time always is : 23:59:59
-> I will implement a countdown timer as: 03:29:29
0
votes
2
answers
45
views
Timer don't come back to 09 after 10
I'm trying to code a countdown timer showing the hours minutes and seconds remaining.
I've been trying to set the time to 24h60min60s first and it was working perfectly. But since I'm trying with ...
0
votes
2
answers
112
views
How to take input for timer with 11 buttons
I am new to android development . I am trying to make a timer app . My UI has 11 buttons from 0-9 , a 00 button and a backspace button . The initial format of my textview will be like "00h 00m ...
1
vote
1
answer
269
views
Pause-resume function on countdown timer (Javascript)
Currently creating a 25 minutes countdown timer with timing incrementing/decrementing buttons. I managed to create the timer and get it to work when pressing "Start" button, but I'm ...
1
vote
0
answers
166
views
How to show countdown timer with link generating for download links in wordpress posts
I want to post some download links in wordpress. Those download links would be like this: https://exampaper.org/go/#https://karunya.edu
When i click on Download button it should goto https://exampaper....
0
votes
1
answer
2k
views
how to run count down timer when app is closed in flutter
Flutter how to run count down timer when the app is closed, I tried but timer each and every time starts from initial stage when I remove app from background
1
vote
0
answers
196
views
creating a pomodoro timer google chrome extension, and the play button always resets the clock instead of just playing from current stop time?
i'm creating a pomodoro timer chrome extension and i'm relatively new to programming. This js code from my focus_time page has issues with the play button...whenever you click play it resets the ...
1
vote
1
answer
211
views
Countdown timer won't stop looping
I've been practicing my count-down timers using Javascript and decided I wanted to try and automate it a bit. What I hope to happen is the user selects a date using a form input=date, and then that ...
-2
votes
1
answer
42
views
Python, calling functions whitin functions; it does not give back the right value
I'm making a game where players guess a random number. If they answer fast, they get points.
The game starts with entering names. A click on the button checks if names are filled in, pops a messagebox ...
0
votes
1
answer
262
views
create a timer in multiple activity for android studio
i am using android studio kotlin and i want to create a countdown timer for multiple activities. for example, i am doing a quiz and the timer is ticking and i make a multiple quiz question in multiple ...
0
votes
2
answers
335
views
CountDowntimer exceeds the maximum duration in Android
I was making a simple fitness app which holds countdowntimer. but the problem is that countdowntimer shows negative values.
it happens when it gets paused.
progressBarExercise.progress = (...
0
votes
0
answers
135
views
My CountdownTimer App works fine on emulator but getting stuck when it reaches to 1 second on device
I tried to create a basic countdown timer android app using kotlin. My app works completely fine in the emulator. But in the device, it is getting stuck when the countdown timer reaches 1 second, it's ...
0
votes
1
answer
114
views
Android countdown timer run in every 5th min
I want android countdown timer that run every 5th mins, If current time is 02:33 then timer should run automatically at 02:35 for 5 mins and then stop and start again at 02:40.
here i want to pass Int ...
1
vote
0
answers
26
views
How to stop execution after a certain time
I have a function that is continuously looking for active services on the network with its name and port, but it is endless.
I would like to know how to stop the execution after 30 seconds or ...
0
votes
0
answers
542
views
How to create a "background timer" on Robot Framework?
I am struggling to create (and to find similar examples) of what I understand as a "background timer" on Robot Framework.
My scenario is:
I have a Test Case to Execute, and at a certain ...
0
votes
2
answers
184
views
Create a countdown time like the shown below
I am trying to create a countdown timer like in the image but I am not able to do it correctly. Could you please help me create this timer please?
I tried to create the timer but couldn't. I am not ...
0
votes
0
answers
189
views
How do I stop a while loop when my countdown timer is up?
def timer():
for t in reversed(range(1, 11)):
sleep(1)
print(t)
if foundAllLetters == True:
break
if remaining_attempts == 0:
...
0
votes
1
answer
53
views
Network load each 5 seconds
I need to make a network request every 5 seconds to update a list with data. I'm thinking of the best way to do it in Android/Kotlin.
I was advised to use CountDownTimer with onTick() and onFinish ...
-1
votes
1
answer
396
views
Countdown Timer in Javascript
Hi everyone I'm building a countdown timer for my site but I'm having a problem when adding the code a new countdown timer is getting created every second, I think it's because I'm injecting my html ...
-1
votes
1
answer
1k
views
Swift 5 - How to make timer work in background
I am just using NotifcationObserver in viewDidLoad
NotificationCenter.default.addObserver(self, selector: #selector(backgroundRefreshStatusDidChange), name: UIApplication....
-1
votes
1
answer
46
views
How to countdown this schedule?
import schedule
import time
from datetime import datetime
scheduleTime = input('Scheduled time: (00:00:00 format) ')
def time_scheduler():
format = '%H:%M:%S'
currentTime = datetime....
1
vote
1
answer
865
views
react-circular-progressbar animation is one second late
i created circular progress bar with the timer and a button to add +10sec to the timer.
when i click on the button it is taking 1 sec delay in performing the animation progress bar.
please help me to ...
-2
votes
1
answer
937
views
How to run countdown timer functionality in the background even the app is killed in flutter?
I am new in flutter. I am making a countdown timer app in flutter. The next thing I need to know that "How I can run my selected Countdown time in the background?" I had done this ...
0
votes
1
answer
78
views
Android- Same countdown timer for all the time zones
I need to show a same Countdown timer for all the time zones of USA.
I am getting end date time ie.(Wed Nov 30 12:00:00 PST 2022, Wed Nov30 12:00:00 EST 2022, WedNov 30 12:00:00 MST 2022)as per time ...
0
votes
2
answers
876
views
Android CountDownTimer with Kotlin Flows
I'm a bit stuck while implementing Android Timer Use Case which is supposed to return a Kotlin flow.
The invoke() function of the use case takes LocalDateTime and should return Flow<String> with ...
0
votes
1
answer
138
views
How can I code a timer to run simultaneously with my code?
import time
import threading
import random
#declare variables and constant
guessingelement = ["Hydrogen", "Magnesium", "Cobalt", "Mercury", "Aluminium"...
0
votes
1
answer
1k
views
Android How to get offset value dynamically for time zone in order show same countdown timer time in all time zones kotlin
I am implementing Android countdown timer and need a functionality when user change the time zone, the timer should show same time in every time zone according to specific time zone like CST.
I am ...
-1
votes
1
answer
188
views
How to make the countdown component display when website is loaded
I have an ongoing project and want to display a countdown before site lauch, how do I do this? Is it posible to load the main webpage when countdown == 0? How do I make the coundown component display ...
0
votes
1
answer
257
views
Android. How to implement countdown timer inside fragment?
I'm trying to implement simple countdown timer inside fragment (without view model or use case). Here is my code:
private fun startTimer(totalSeconds: Int): Flow<Int> =
(totalSeconds - 1 ...
0
votes
1
answer
603
views
Is there a way to display a unique countdown timer in table rows with time stored in the database using Asp.net Core MVC?
I am building a cart booking system. Since bookings can be from 1 hour to 6 hours, there must be a countdown timer using the time stored in the database. All booked carts are displayed in a table, ...
0
votes
0
answers
140
views
How to Create a Firebase Server Side Timer in Android App With background Functionality in Android Studio using java?
I am trying to create Online Spin Earning App. So i wish i set a timer in my app so when users Spin Life is ended a 24 hour timer will start and i want to create this using Firebase Server Side Timer ...
0
votes
1
answer
118
views
Running again setInterval in jQuery Ajax
I want to run it again after the end of setInterval, but after running it in Ajax, it starts showing strange numbers. It is clear in the picture below.
When I run the page, setInterval works, but when ...
1
vote
2
answers
1k
views
How to Implement or Handle the CountDownTimer using Kotlin Coroutines
I build an android app Countdown Timer using Kotlin. When I start the timer using Coroutines it throws an error as follows.
Need your help that:
How I can handle or implement the Countdown Timer's ...
4
votes
1
answer
573
views
LiveData not updating for every list item, only for the last one
I have a string LiveData which is a generated identifier from one of my own methods. My problem is that I have a list in recyclerview and when a countdown timer finish, all of items of the ...