| | |
| | | import android.app.Application; |
| | | |
| | | import cn.com.basic.face.service.DictionaryMng; |
| | | import cn.com.basic.face.service.PlaceMng; |
| | | import cn.com.basic.face.service.VisitorTypeMng; |
| | | import cn.com.basic.face.service.DeviceMng; |
| | | |
| | | import com.facebook.drawee.backends.pipeline.Fresco; |
| | | import com.lzy.okhttputils.OkHttpUtils; |
| | | import com.lzy.okhttputils.model.HttpHeaders; |
| | |
| | | } |
| | | |
| | | public Place getPlace() { |
| | | if (place == null) { |
| | | place = new Place(); |
| | | } |
| | | return place; |
| | | } |
| | | |
| | |
| | | Fresco.initialize(this); |
| | | initOkHttpUtils(); |
| | | application = this; |
| | | PlaceMng.getInstance().findPlace(); |
| | | DeviceMng.getInstance().findPlace(); |
| | | DictionaryMng.getInstance().loadAllDictionaryData(); |
| | | VisitorTypeMng.getInstance().loadAll(); |
| | | } |
| | | |
| | | private void initOkHttpUtils() { |