wakelock
Android GPS tracking and WakeLock
I need to do background GPS tracking on an Android phone, and I\'m currently planning on having two scenarios:[详细]
2023-04-13 03:47 分类:问答Detect when an application is keeping the screen on
I\'m writing an Android app that mostly communicates with the user via status bar notifications.However, I would like to not bother the user if s/he is not really directly interacting with their phone[详细]
2023-04-12 19:09 分类:问答Allow phone to vibrate when screen turns off
I am looking for a way to allow my program to make the phone vibrate after the screen has turned off from timing out. I have done lots of research, and have not foun开发者_运维问答d something that wor[详细]
2023-04-03 08:07 分类:问答Correct pattern to acquire a WakeLock in a BroadcastReceiver and release it in a Service
Even after a lot of research I am still not completely sure if the way how I implement a WakeLock for a Service started by a BroadcastReceiver is correct - even though it seems to work fine. The broad[详细]
2023-03-30 06:01 分类:问答Android: wake lock: is lock released on application paused?
I have to use the wakelock (yes I shouldn\'t for the obvious reaso开发者_开发问答ns but I\'m being paid to do it so I don\'t have a choice lol)[详细]
2023-03-24 11:17 分类:问答Service and Wake Lock Policy
As stated by the AlarmManager docs: http://developer.android.com/reference/android/app/AlarmManager.html#RTC_WAKEUP[详细]
2023-03-23 03:06 分类:问答Check for wifi networks signal in sleep mode
My objective is to be able to scan changes in Wi-Fi networks (mainly to check what networks are available). Right know I\'m doing it by registering a reciever:[详细]
2023-03-22 04:37 分类:问答Turn off screen on Android
I am trying to turn on and off the display after a certain action happens (Lets just worry about turning the screen off for now). From what I understand from wake lock, this is what I have:[详细]
2023-03-22 01:41 分类:问答NotificationManager.notify() fails with SecurityException
When does NotificationManager.notify() require WAKE_LOCK permission on Android 2.2? I received following stack trace from one user:[详细]
2023-03-20 21:00 分类:问答Wake the device up when app prompts user
I\'m using handler to repeatedly prompt user for an input every e.g. 5 minutes. When the device goes into sleeping mode and screen is locked, how can I wake the device up when my app prompts user for[详细]
2023-03-14 14:58 分类:问答