Current Location failed GoogleMap

前端 未结 3 2040
醉梦人生
醉梦人生 2021-01-27 05:36

I want to check if the GPS is on if it is should show the current location. If not it should ask to turn it on. If user click cancel or dont turn the coordinates will be set as

3条回答
  •  自闭症患者
    2021-01-27 06:21

    Add this override method for me its worked fine--

     @Override
    public void onLocationChanged(Location location) {
        getLocation("onLocationChanged");
    }
    

提交回复
热议问题