Questions tagged as 'timer'

1
answer

Close a recently opened process C #

I need to perform the execution of a process for a certain time, for which I start a process, and using a Timer after 10 minutes, I kill it using Kill() , I do it in the following way: using System.Diagnostics; using System.Thread...
asked by 04.01.2019 / 13:02
2
answers

Go through an ArrayList and show one by one

I am using a for to go through a list of objects, but it only shows me the last one, in the console if it shows me that it goes through all, but in the Imageview it only shows the last one. Code: if(!L.isEmpty()){ for (B...
asked by 14.04.2017 / 21:10
2
answers

Execute action every day at the same time in C #

I am working on a Console application that must perform some actions at certain times of the day (I clarify that it is not a service because I need the execution of processes) The issue is that I must start an application at a certain time an...
asked by 12.11.2018 / 17:51
2
answers

Android: How to do different events by touching a button and keeping it pressed?

I am working on an android project, where I need a button to perform 2 different actions in certain circumstances: When you touch it (do not hold it down), do the event1. When you hold down for 5 seconds, do the event2. In the res / lay...
asked by 05.04.2018 / 15:10
3
answers

Convert hours to minutes

I would like to convert a data in horas format in minutes using JQuery Data to convert var hora='3:19:00'; result var nuevoDato= '199';     
asked by 01.02.2018 / 23:56
1
answer

I can not solve a problem with an if

I'm doing a game in which you have to calculate the time in seconds that is requested by keyboard, and when that time exceeds the end of the game. But when it goes through that if , it does not calculate time or it's infinite or it just le...
asked by 24.01.2018 / 20:40
1
answer

FATAL EXCEPTION: Timer-0

I am showing in a fragment, a sequence of three images through a ViewPager, I have added to the fragment a timer TimerTask for the images, occasionally an error is generated that closes the application and refers to the line: getActivity().run...
asked by 14.11.2017 / 20:35
2
answers

Automatic timed mode [closed]

How can I launch a modal in the form of an alert in JavaScript that is activated and deactivated automatically at a certain time? when activated, please some documentation, suggestion or help. Thanks. Thanks in advance to the answer...
asked by 27.11.2018 / 20:31
0
answers

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException; Error in the translation of an OID in the snmp management entity.

What happens is that when I try to translate the information in the form of Response Event to String I get an exception, I think it's in this method, maybe I'm ignoring something, it's a new class for me, so I do not know it very well; this is t...
asked by 25.11.2018 / 06:59
1
answer

Update UI every 1 second only updates every 4? Android Studio

I'm working on Android Studio and I have the following problem and I do not know why it happens: My code takes the current unix time in milliseconds, divides the unix time by 1000 to extract the seconds, subtracts a date in unix in seconds and s...
asked by 14.10.2018 / 21:05