wakelock
Activate Android with touch instead of power button
We\'ve got a tablet application for which we want to s开发者_JS百科creen to timeout after a certain period, but would like the user to re-enable it by touching the screen instead of the \'power\'-butt[详细]
2023-03-11 23:02 分类:问答Do I need to obtain a WakeLock if I don't create threads?
I\'m creating a Service that will be set up to start using the AlarmManager (using ELAPSED_REALTIME_WAKEUP). I do all my processing inside the onStartCommand method mainly because:[详细]
2023-03-09 02:08 分类:问答Wake Lock in Samsung Galaxy Tab
I am developing an app in which i need to send and receive packets in background. But I\'ve discovered that when screen shut off also cpu and networking is disabled. So I\'ve found on Android Develope[详细]
2023-03-07 17:57 分类:问答Should I use WakeLock in IntentService?
Suppose I use BroadcastReceiver to receive events(intents) that awake the phone even if it is in deep sleep mode (such as incoming data packet on a socket, or incoming text message). Then I forward re[详细]
2023-03-07 11:44 分类:问答Keep handler and service alive while waiting for response from separate thread?
I\'m using a repeating alarm to trigger a BroadcastReceiver (OnAlarmReceiver) which in turn calls WakefulIntentService.sendWakefulWork(context, PmNotificationService.class);[详细]
2023-03-05 05:48 分类:问答WakeLock finalized while still held
The pm and keepScreenOn variables are globally defined. I grab the PowerManager.WakeLock in my OnCreate method:[详细]
2023-03-04 13:27 分类:问答Android Service Stops Even with Wakelocks in Place
I must not have implemented the wakelocks correctly. This is how I did it. Is this correct? private static final String LOCK_NAME_STATIC=\"domination.shredAssistant.locationService\";[详细]
2023-03-03 12:14 分类:问答How can I see which wakelocks are active
For some reason my Android phone won\'t go to sleep. I assume that a wakelock is keeping it awake, but there is no way to tell which wakelocks are active. The running services doesn\'t list anything s[详细]
2023-03-01 02:17 分类:问答BroadcastReceiver, Service and Wakelock
im receiving an intent in broadcast receiver and then i start service to do more work. now what if the devi开发者_开发百科ce is sleep and this happen, do i have to get Wakelock (AlarmManger?), and why[详细]
2023-02-26 18:31 分类:问答What events can wake up a sleeping Android device?
I am writing a Android client app which keeps receiving push notifications from a server using HTTP long-polling(Comet).[详细]
2023-02-23 05:25 分类:问答