Set a timeout of service
This commit is contained in:
1 parent
00c19fc0da
commit
7af33ee1c8
4 files changed
+5
-5
No files matched your search
@@ -23,7 +23,7 @@ public class Alarm extends BroadcastReceiver
|
||||
{
|
||||
PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
||||
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "");
|
||||
wl.acquire();
|
||||
wl.acquire(10);
|
||||
// Make notification appear
|
||||
context.startService(new Intent(context, NotificationHelper.class));
|
||||
|
||||
|
||||
Reference in new issue
Block a user