timertask
Android sending a http request every minute to server? repeating a task?
I want to send a request to the server every minute, Basically I have method and needs to be run every min to send to server some query. what is the best way of doing this? I have searched on the inte[详细]
2023-04-12 02:02 分类:问答TimerTask start stop only executing once
Problem, I can only execute my timer once. I know its because I called the function timer2.cancel(); and timer1.cancel(); :: Cancel being \"Never run this ever again\". I need a replacement function,[详细]
2023-04-10 19:27 分类:问答Performing Wifi scanning at regular interval, using AsyncTask/Handler in android
I wish to perform Wifi scanning at regular interval between 0-10sec as the time can be set by user. However, i am not sure whether to use AsyncTask or Handler to do so or even combining both to achiev[详细]
2023-04-10 12:02 分类:问答iPhone equivalent of Timer and TimerTask for periodic tasks
I\'m trying to port an Android app to an iPhone. On Android I could easily process data every 60 seconds by using a T开发者_如何学运维imer class with TimerTasks using scheduleAtFixedRate:[详细]
2023-04-07 19:47 分类:问答How to Pass Arguments to Timertask Run Method
I have a method and I want it to be scheduled for execution in later times. The scheduling time and method\'s arguments depend on user inputs.[详细]
2023-04-06 20:34 分类:问答Optimization of service running with a continuously executing TimerTask
I need a service that should always be running till its stopped explicitly by my activityand should start again even if it is stopped due to some issue (START_STICKY flag). This service should continu[详细]
2023-04-05 09:01 分类:问答Best way to restart TimerTask in Service
i would like to restart my TimerTask in my Service when i changed the refresh time in the config Activity.[详细]
2023-03-26 09:11 分类:问答InputStream left open from TimerTask call to Guava map; GlassFish complains on undeploy
I\'m implementing ServletContextListener in order to schedule various jobs on my app server (GlassFish 3.1). I\'m using contextInitialized() to schedule recurring tasks, andcontextDestroyed() to call[详细]
2023-03-23 17:40 分类:问答Delayed actions and BroadcastReceiver
I have a case in which I have to start some non-UI action N seconds after power has been connected to the device. That action could be also started by user via UI.[详细]
2023-03-19 22:09 分类:问答TimerTask Android Bluetooth
I am implementing a Service that starts when Android boots, and it\'s supposed to scan every 10 mins for nearby Bluetooth devices.When it discovers devices, it does some work.Also, this periodic scann[详细]
2023-03-18 23:30 分类:问答