SafeDK
Sign upAdd Your SDK

Staying Awake At Work

Provides the WakefulIntentService, a refinement of the IntentService that keeps the device awake while background tasks are being processed. This is useful for work to be scheduled via the AlarmManager.

he recommended pattern for Android's equivalent to cron jobs and Windows scheduled tasks is to use AlarmManager. This works well when coupled with an IntentService, as the service will do its work on a background thread and shut down when there is no more work to do. 

There's one small problem: IntentService does nothing to keep the device awake. If the alarm was a WAKEUP variant, the phone will only stay awake on its own while the BroadcastReceiver handling the alarm is in its onReceive() method. Otherwise, the phone may fall back asleep. 

WakefulIntentService attempts to combat this by combining the ease of IntentService with a partial WakeLock.

SDK for Android

updated to Android Studio 1.0 

Required Permissions

  •  Wake_lock
  •  Receive_boot_completed

Documentation

Example A

Selected Apps that use this SDK

T9gn1tpgmzymwqkm9kmnxiwpmw3v32rdy9mj52vsvibnj7rualazwlee7fq07wfyxqmisg3t7sxvpf3f

Slacker Radio

Fcpfwofn3f4mbhygfgl eexxyqi7xapj68pndktxfbxjgiqcxyczmtm0sajo ki8io82jy9wrkugssqz

1800CONTACTS App

Az62nck2dvibn2lrzyfhffnhioinqrjo9qgixau9pxgcdzmad1cinyix9je 9pre uatqgqfnng0 59n

TVShow Time, TV show guide

Cgnx35 yllvdxga4sxqns4cun13ywmt2t xmdpdtm2lgkbaxlovfxlppenb9f ujfayfocd2pb8nkmcg

WiFi Map — Free Passwords

Similar SDKs

MORE

Reviews

Rate Now
0
0
0
0
0
0

Start a new discussion about CWAC Wakeful

×
0
/1000

More from this Developer

MORE
Login