forked from kevinkong/Emmagee
-
Notifications
You must be signed in to change notification settings - Fork 718
/
Settings.java
38 lines (32 loc) · 1.16 KB
/
Settings.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.netease.qa.emmagee.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
* Parameters in Setting Activity
*
* @author yrom
*
*/
public final class Settings {
public static final String KEY_SENDER = "sender";
public static final String KEY_PASSWORD = "password";
public static final String KEY_RECIPIENTS = "recipients";
public static final String KEY_SMTP = "smtp";
public static final String KEY_ISFLOAT = "isfloat";
public static final String KEY_INTERVAL = "interval";
public static final String KEY_ROOT = "root";
public static final String KEY_AUTO_STOP = "autoStop";
public static final String KEY_WACK_LOCK = "wakeLock";
public static final String EMMAGEE_RESULT_DIR = "/sdcard/Emmagee/";
private static WakeLockHelper wakeLockHelper;
public static SharedPreferences getDefaultSharedPreferences(Context context) {
return PreferenceManager.getDefaultSharedPreferences(context);
}
public static WakeLockHelper getDefaultWakeLock(Context context) {
if (wakeLockHelper == null) {
wakeLockHelper = new WakeLockHelper(context);
}
return wakeLockHelper;
}
}