keepalive初始版
This commit is contained in:
parent
2b44a4e262
commit
2dc947bacb
@ -14,6 +14,8 @@ import com.arpa.hndahesudintocctmsdriver.request.net.Api;
|
|||||||
import com.dahe.mylibrary.CommonBaseLibrary;
|
import com.dahe.mylibrary.CommonBaseLibrary;
|
||||||
import com.esign.esignsdk.EsignSdk;
|
import com.esign.esignsdk.EsignSdk;
|
||||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||||
|
import com.gyf.cactus.Cactus;
|
||||||
|
import com.gyf.cactus.callback.CactusCallback;
|
||||||
import com.umeng.commonsdk.UMConfigure;
|
import com.umeng.commonsdk.UMConfigure;
|
||||||
|
|
||||||
import cn.jiguang.verifysdk.api.JVerificationInterface;
|
import cn.jiguang.verifysdk.api.JVerificationInterface;
|
||||||
@ -28,6 +30,7 @@ public class App extends Application {
|
|||||||
public static int APP_STATUS = APP_STATUS_KILLED; // 记录App的启动状态
|
public static int APP_STATUS = APP_STATUS_KILLED; // 记录App的启动状态
|
||||||
private Context con;
|
private Context con;
|
||||||
public static App mApplication = null;
|
public static App mApplication = null;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
@ -63,6 +66,18 @@ public class App extends Application {
|
|||||||
Log.e("-error-", "初始化失败sss");
|
Log.e("-error-", "初始化失败sss");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cactus.getInstance()
|
||||||
|
// .isDebug(true)
|
||||||
|
//// .setBackgroundMusicEnabled(true)//可选,退到后台是否可以播放音乐
|
||||||
|
//// .setMusicId(R.raw.main) //可选,设置音乐
|
||||||
|
//// .setPendingIntent(pendingIntent)//可选,设置通知栏点击事件
|
||||||
|
//// .addCallback(new CactusCallback())//可选,运行时回调
|
||||||
|
// .setCrashRestartUIEnabled(true) //可选,设置奔溃可以重启,google原生rom android 10以下可以正常重启
|
||||||
|
// .setCrashRestartUIEnabled(true)//可选,设置奔溃可以重启,google原生rom android 10以下可以正常重启
|
||||||
|
// .setTitle("大河好运")
|
||||||
|
// .setSmallIcon(R.drawable.diver_logo)
|
||||||
|
// .register(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static App getApp() {
|
public static App getApp() {
|
||||||
|
BIN
app/src/main/res/raw/main.mp3
Normal file
BIN
app/src/main/res/raw/main.mp3
Normal file
Binary file not shown.
@ -77,6 +77,7 @@ dependencies {
|
|||||||
api rootProject.ext.dependencies["3Dmap"]
|
api rootProject.ext.dependencies["3Dmap"]
|
||||||
api rootProject.ext.dependencies["Location"]
|
api rootProject.ext.dependencies["Location"]
|
||||||
api rootProject.ext.dependencies["Search"]
|
api rootProject.ext.dependencies["Search"]
|
||||||
|
api 'com.gyf.cactus:cactus:1.1.3-beta13'
|
||||||
|
|
||||||
|
|
||||||
//友盟基础库(必须)
|
//友盟基础库(必须)
|
||||||
|
Loading…
Reference in New Issue
Block a user