|
|
@ -1,10 +1,11 @@
|
|
|
|
package com.xypower.common;
|
|
|
|
package com.xypower.common;
|
|
|
|
|
|
|
|
|
|
|
|
import android.app.ActivityManager;
|
|
|
|
import android.app.ActivityManager;
|
|
|
|
import android.app.Service;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.pm.PackageManager;
|
|
|
|
import android.content.pm.PackageManager;
|
|
|
|
|
|
|
|
import android.net.ConnectivityManager;
|
|
|
|
|
|
|
|
import android.net.Network;
|
|
|
|
import android.os.Environment;
|
|
|
|
import android.os.Environment;
|
|
|
|
import android.os.storage.StorageManager;
|
|
|
|
import android.os.storage.StorageManager;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
import android.text.TextUtils;
|
|
|
@ -22,8 +23,6 @@ import java.io.InputStreamReader;
|
|
|
|
import java.io.OutputStreamWriter;
|
|
|
|
import java.io.OutputStreamWriter;
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
import java.lang.reflect.Method;
|
|
|
|
import java.lang.reflect.Method;
|
|
|
|
import java.text.NumberFormat;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
public class MicroPhotoContext {
|
|
|
|
public class MicroPhotoContext {
|
|
|
@ -32,7 +31,7 @@ public class MicroPhotoContext {
|
|
|
|
public static final String PACKAGE_NAME_MPMASTER = "com.xypower.mpmaster";
|
|
|
|
public static final String PACKAGE_NAME_MPMASTER = "com.xypower.mpmaster";
|
|
|
|
public static final String ACTION_HEARTBEAT_MP = "com.xypower.mpapp.ACT_HB";
|
|
|
|
public static final String ACTION_HEARTBEAT_MP = "com.xypower.mpapp.ACT_HB";
|
|
|
|
|
|
|
|
|
|
|
|
public final static String DEFAULT_MASTER_URL = "http://180.166.218.222:40101/";
|
|
|
|
public final static String DEFAULT_MASTER_URL = "http://61.169.135.150:40101/";
|
|
|
|
public final static String MASTER_URL_CMDID = "cmdid";
|
|
|
|
public final static String MASTER_URL_CMDID = "cmdid";
|
|
|
|
public final static int DEFAULT_PROTOCOL = 0xFF00;
|
|
|
|
public final static int DEFAULT_PROTOCOL = 0xFF00;
|
|
|
|
public final static int DEFAULT_HEARTBEAT_TIME_FOR_SEPARATE_NW = 575; // 9:35
|
|
|
|
public final static int DEFAULT_HEARTBEAT_TIME_FOR_SEPARATE_NW = 575; // 9:35
|
|
|
|