-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2df4efd
commit 20492b2
Showing
25 changed files
with
230 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/com/phantomLord/cpufrequtils/app/receivers/SaveReferenceReceiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.phantomLord.cpufrequtils.app.receivers; | ||
|
||
import android.content.Context; | ||
import android.content.Intent; | ||
import android.support.v4.content.WakefulBroadcastReceiver; | ||
|
||
import com.phantomLord.cpufrequtils.app.services.SaveSinceUnpluggedReferenceService; | ||
|
||
public class SaveReferenceReceiver extends WakefulBroadcastReceiver { | ||
|
||
@Override | ||
public void onReceive(Context context, Intent intent) { | ||
if (Intent.ACTION_POWER_DISCONNECTED.equals(intent.getAction())) { | ||
context.startService(new Intent(context, | ||
SaveSinceUnpluggedReferenceService.class)); | ||
} | ||
} | ||
|
||
} |
17 changes: 7 additions & 10 deletions
17
src/com/phantomLord/cpufrequtils/app/services/BootService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/com/phantomLord/cpufrequtils/app/services/SaveSinceUnpluggedReferenceService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.phantomLord.cpufrequtils.app.services; | ||
|
||
import android.app.IntentService; | ||
import android.content.Intent; | ||
import android.util.Log; | ||
|
||
import com.phantomLord.cpufrequtils.app.utils.Constants; | ||
|
||
public class SaveSinceUnpluggedReferenceService extends IntentService { | ||
|
||
public SaveSinceUnpluggedReferenceService() { | ||
super("Save Unplugged reference service"); | ||
} | ||
|
||
@Override | ||
protected void onHandleIntent(Intent intent) { | ||
Log.d(Constants.App_Tag, "Saving Unplugged References "); | ||
|
||
stopSelf(); | ||
} | ||
|
||
} |
Oops, something went wrong.