| | |
| | | |
| | | import org.xutils.x; |
| | | |
| | | import cn.com.basic.face.discern.entity.Device; |
| | | |
| | | /** |
| | | * Created by zhangbo on 2017/2/15. |
| | | */ |
| | | |
| | | public class BaseApplication extends Application{ |
| | | |
| | | private static BaseApplication application; |
| | |
| | | return application; |
| | | } |
| | | |
| | | private Device place; |
| | | private Device device; |
| | | |
| | | public void setPlace(Device place) { |
| | | this.place = place; |
| | | public void setDevice(Device device) { |
| | | this.device = device; |
| | | } |
| | | |
| | | public Device getPlace() { |
| | | if (place == null) { |
| | | place = new Device(); |
| | | public Device getDevice() { |
| | | if (device == null) { |
| | | device = new Device(); |
| | | } |
| | | return place; |
| | | return device; |
| | | } |
| | | |
| | | @Override |
| | |
| | | Fresco.initialize(this); |
| | | initOkHttpUtils(); |
| | | application = this; |
| | | DeviceMng.getInstance().findPlace(); |
| | | DeviceMng.getInstance().findDevice(); |
| | | DictionaryMng.getInstance().loadAllDictionaryData(); |
| | | } |
| | | |