Move the powermanager before the intent. Removed wrapper properties from source control. This is dynamically generated.

This commit is contained in:
Mark Gillespie 2017-01-27 18:21:34 +00:00
parent 259a989505
commit 381fd5c910
2 changed files with 1 additions and 7 deletions

View file

@ -1,6 +0,0 @@
#Sun Jan 22 21:19:51 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

View file

@ -28,11 +28,11 @@ public class ExportAllService extends IntentService {
private static PowerManager m_powerManager;
public static void startExport(Context pContext) {
m_powerManager = (PowerManager) pContext.getSystemService(POWER_SERVICE);
Intent lIntent = new Intent(pContext, ExportAllService.class);
lIntent.setAction(ACTION_EXPORT);
pContext.startService(lIntent);
Log.i(TAG, "Intent sent!");
m_powerManager = (PowerManager) pContext.getSystemService(POWER_SERVICE);
}
public ExportAllService()