Codota Logo
LocationClient.stop
Code IndexAdd Codota to your IDE (free)

How to use
stop
method
in
com.baidu.location.LocationClient

Best Java code snippets using com.baidu.location.LocationClient.stop (Showing top 20 results out of 315)

  • Common ways to obtain LocationClient
private void myMethod () {
LocationClient l =
  • Codota IconContext context;new LocationClient(context)
  • Codota IconEaseBaiduMapActivity easeBaiduMapActivity;new LocationClient(easeBaiduMapActivity)
  • Codota IconContext context;new LocationClient(context.getApplicationContext())
  • Smart code suggestions by Codota
}
origin: myxh/CoolShopping

@Override
public void onDestroy() {
  mClient.stop();//停止定位
  super.onDestroy();
}
origin: brainysoon/cyberCar

@Override
public void onPause() {
  super.onPause();
  mLocation.stop();
}
origin: huangfangyi/FanXin

@Override
protected void onPause() {
  if (mLocClient != null) {
    mLocClient.stop();
  }
  super.onPause();
  lastLocation = null;
}
origin: huangfangyi/YiChat

@Override
protected void onPause() {
  mMapView.onPause();
  if (mLocClient != null) {
    mLocClient.stop();
  }
  super.onPause();
  lastLocation = null;
}
origin: gaolhjy/enjoyshop

public void stop(){
  synchronized (objLock) {
    if(client != null && client.isStarted()){
      client.stop();
    }
  }
}

origin: yiwent/Mobike

public void onDestroy() {
  super.onDestroy();
  routeBaiduMap.setMyLocationEnabled(false);
  mlocationClient.stop();
  completeRoute = false;
}
origin: xxxtai/Android-CourierAssistant

@Override
protected void onDestroy() {
  // 退出时销毁定位
  mLocClient.stop();
  super.onDestroy();
  unregisterReceiver(mReceiver);
}
origin: brainysoon/cyberCar

@Override
protected void onPause() {
  mMapView.onPause();
  mLocationClient.stop();
  super.onPause();
}
origin: zaynr/Carpool-Android-Client

@Override
protected void onPause() {
  super.onPause();
  mMapView.onPause();
  mLocClient.stop();
}
origin: bigsinger/fakegps

@Override
public void onDestroy() {
  super.onDestroy();
  mMapView.onDestroy();
  mLocationClient.stop();
}
origin: huangfangyi/YiChat

@Override
protected void onDestroy() {
  if (mLocClient != null)
    mLocClient.stop();
  mMapView.onDestroy();
  unregisterReceiver(mBaiduReceiver);
  super.onDestroy();
}
private void initMapView() {
origin: ChenJunXu/BaiduWeChatPosition

@Override
protected void onDestroy() {
  super.onDestroy();
  // 在activity执行onDestroy时执行mMapView.onDestroy(),实现地图生命周期管理
  // 退出时销毁定位
  mLocClient.stop();
  // 关闭定位图层
  mBaiduMap.setMyLocationEnabled(false);
  bmapView.onDestroy();
  bmapView = null;
}
origin: huangfangyi/FanXin

@Override
protected void onPause() {
  mMapView.onPause();
  if (mLocClient != null) {
    mLocClient.stop();
  }
  super.onPause();
  lastLocation = null;
}
origin: stevenwsg/XSY-University-trade

@Override
protected void onPause() {
  mMapView.onPause();
  if (mLocClient != null) {
    mLocClient.stop();
  }
  super.onPause();
  lastLocation = null;
}
origin: gaolhjy/enjoyshop

public boolean setLocationOption(LocationClientOption option){
  boolean isSuccess = false;
  if(option != null){
    if(client.isStarted())
      client.stop();
    DIYoption = option;
    client.setLocOption(option);
  }
  return isSuccess;
}

origin: WuXiaolong/WoChat

@Override
protected void onPause() {
  mMapView.onPause();
  if (mLocClient != null) {
    mLocClient.stop();
  }
  super.onPause();
  lastLocation = null;
}
origin: huangfangyi/FanXin

@Override
protected void onDestroy() {
  if (mLocClient != null)
    mLocClient.stop();
  unregisterReceiver(mBaiduReceiver);
  super.onDestroy();
}
origin: lzan13/EaseUICustomer

@Override
protected void onPause() {
  mMapView.onPause();
  if (mLocClient != null) {
    mLocClient.stop();
  }
  super.onPause();
  lastLocation = null;
}
origin: myxh/CoolShopping

@Override
protected void onDestroy() {
  //销毁定位
  mLocationClient.stop();
  //关闭定位图层
  mBaiduMap.setMyLocationEnabled(false);
  mMapView.onDestroy();
  mMapView = null;
  super.onDestroy();
}
origin: huangfangyi/FanXin

@Override
protected void onDestroy() {
  if (mLocClient != null)
    mLocClient.stop();
  mMapView.onDestroy();
  unregisterReceiver(mBaiduReceiver);
  super.onDestroy();
}
private void initMapView() {
com.baidu.locationLocationClientstop

Popular methods of LocationClient

  • <init>
  • registerLocationListener
  • setLocOption
  • start
  • unRegisterLocationListener
  • isStarted
  • requestLocation
  • disableLocInForeground
  • enableLocInForeground
  • getLastKnownLocation
  • requestHotSpotState
  • setDebug
  • requestHotSpotState,
  • setDebug

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now