Exemple #1
0
 protected void startLocation(LocationListener cityNameStatus) {
   if (0 == CommonUtil.isNetworkAvailable(ct)) {
     showToast(ct.getResources().getString(R.string.networkno));
     dialog.dismiss();
     return;
   }
   if (mLocationUtils == null) mLocationUtils = new LocationUtils(ct, cityNameStatus);
   if (!mLocationUtils.isStarted()) {
     mLocationUtils.startLocation(); // 开始定位
   }
 }
Exemple #2
0
 @Override
 public void failed() {
   showToast(ct.getResources().getString(R.string.locationno));
   dialog.dismiss();
 }