alarmmanager
How to run a code periodically the right way
I need to download some data and parse the results at some intervals. Right now i start a service from my actitivy that starts a TimerTask every few seconds. Now i read so开发者_开发技巧me things abou[详细]
2023-04-12 06:25 分类:问答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 分类:问答What's the best between AlarmManager and Handler+WakeLock?
I\'m using for my Android Service an Handler that reapeat some operation each 60 minutes (1 hour), with a PartialWakeLock to keep the phone not sleeping. But this cause a lot of battery usage.[详细]
2023-04-11 13:52 分类:问答Create reminder in android app
I am trying to create a weekly reminder in my app. For this I am using AlarmManager. Here is the code generating alarm[详细]
2023-04-11 00:14 分类:问答Alarm Manager doesn't go off
I\'m building an Alarm Application. for it, I\'m need to supply a time as input. I\'m trying following code but alarm doesnt\' trigger. I searched online and modified the code much alot but still no l[详细]
2023-04-10 04:09 分类:问答How to pass image id to alarm service?
I use alarm service to start notifications. I want to have different image in notification based on which pendingIntent has called it. I tried passing this id via intent, but the app crashes[详细]
2023-04-09 00:46 分类:问答How to keep a task alive after phone sleeps?
my application needs to send a message to my server every 30 seconds or so. I understand I need to use AlarmManager using RT开发者_Go百科C_WAKEUP or ELAPSED_REALTIME_WAKEUP.[详细]
2023-04-08 14:57 分类:问答Keep android alarms alive, even after process killed by a task manager
I am writin开发者_C百科g an alarm program. My problem is task managers, like advanced task manager or Samsung task manager, remove my alarms when clearing memory.[详细]
2023-04-07 05:17 分类:问答How to add a alarm dynamically through code?
I am developing an application to pass a value to alarm through code. How can I make it possible. Can I get the intent 开发者_如何学JAVAcode and to pass the value to set an alarm?Here is all the infor[详细]
2023-04-06 02:54 分类:问答AlarmManager and BroadcastReceiver: is this right approach? (need to repeat task every X mins)
My application should send some data to the remote database. The problem is that sometimes there is no internet connection available (for example, there are no Wi-Fi and GSM signals). In this case I s[详细]
2023-04-05 18:13 分类:问答