| | |
| | | package com.moral.yunfushao; |
| | | |
| | | import android.app.Application; |
| | | import android.bluetooth.BluetoothGattService; |
| | | |
| | | import com.baidu.location.BDLocation; |
| | |
| | | * Created by haijiang on 2017/5/2. |
| | | */ |
| | | |
| | | public class MainApp extends Application { |
| | | public class MainApp extends SampleApplication { |
| | | public static MainApp theApp; |
| | | //用户id |
| | | public static String userId; |
| | |
| | | OkGo.getInstance().setCookieStore(new PersistentCookieStore()); |
| | | |
| | | if (sharedPreferencesUtil == null) { |
| | | sharedPreferencesUtil = new SharedPreferencesUtil(this); |
| | | sharedPreferencesUtil = SharedPreferencesUtil.getUtil(this); |
| | | } |
| | | userId = sharedPreferencesUtil.getUserid(); |
| | | |
| | | |
| | | |
| | | if (MainApp.theApp.sharedPreferencesUtil.getVoiceType() == 0) { |
| | | AppConfig.voideUrl1 = "http://yfsapi.7drlb.com/video/boy/music.mp3"; |
| | |
| | | AppConfig.voideUrl1 = "http://yfsapi.7drlb.com/video/girl/music.mp3"; |
| | | AppConfig.voideUrl2 = "http://yfsapi.7drlb.com/video/girl/music1.mp3"; |
| | | AppConfig.voideUrl3 = "http://yfsapi.7drlb.com/video/girl/music2.mp3"; |
| | | } else if (MainApp.theApp.sharedPreferencesUtil.getVoiceType() == 2) { |
| | | AppConfig.voideUrl1 = null; |
| | | AppConfig.voideUrl2 = null; |
| | | AppConfig.voideUrl3 = null; |
| | | } |
| | | bleManager = new BleManager(this); |
| | | |
| | |
| | | mLocClient.start(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 定位SDK监听函数 |
| | | */ |