Set a timeout of service

This commit is contained in:
2017-12-17 01:24:09 +01:00
parent 00c19fc0da
commit 7af33ee1c8
4 changed files with 5 additions and 5 deletions

2
.idea/misc.xml generated
View File

@@ -24,7 +24,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@@ -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));

View File

@@ -1,2 +1,2 @@
#Sat Sep 02 14:54:18 CEST 2017
VERSION_CODE=185
#Sun Dec 17 00:34:30 CET 2017
VERSION_CODE=188

View File

@@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-beta4'
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong