@Override protected void onResume() { super.onResume(); // 检查更新 UpdateService updateService = UpdateService.getInstance(this); updateService.checkUpdate(); }
@Override protected void onDestroy() { super.onDestroy(); stopLocation(); quitAllQuan(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); initView(); initLocation(); updateNearByQuan(); CacheService.registerUser(AVUser.getCurrentUser()); // initTestData(); }