腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
3
回答
如何
检查
LocationManager.NETWORK_PROVIDER
是否
可用
?
android
、
android-location
如何
检查
LocationManager.NETWORK_PROVIDER
是否
可用
? 我在AndroidManifest.xml中启用了,但我需要在代码中进行
检查
,如果无法使用GPS_PROVIDER。
浏览 0
提问于2011-10-06
得票数 4
回答已采纳
5
回答
网络连接已关闭,但位置提供程序为NetworkProvider
android
、
gps
、
locationmanager
、
android-location
程序
检查
GPS的
可用
性。如果禁用GPSProvider,则警告用户。如果用户不启用全球定位系统,程序
检查
networkProvider。
检查
网络提供者的代码, AlertDialog builder = new)){ locationMana
浏览 7
提问于2013-10-24
得票数 1
回答已采纳
1
回答
同时使用GPS手持器和网络提供商
android
、
networking
、
gps
、
provider
在我的应用程序中,我想给用户知道他的localisation...but的可能性我想实现一个全球定位系统和网络提供商...because全球定位系统提供商并不总是
可用
...我使用仿真器,我不知道我的代码
是否
工作LocationManager.GPS_PROVIDER, 0, 0, mlocListener); locationManager.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER
浏览 1
提问于2013-01-18
得票数 0
回答已采纳
1
回答
java.lang.IllegalArgumentException: provider=network
java
、
android
、
android-intent
、
geolocation
android.location.LocationManager.requestLocationUpdates(LocationManager.java:508) mLocationManager.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER
浏览 1
提问于2014-05-07
得票数 0
回答已采纳
2
回答
如何
以编程方式获得API 23及以上API中的位置(lat、lng)?
android
、
android-6.0-marshmallow
、
android-location
、
android-gps
LocationManager) getSystemService(Context.LOCATION_SERVICE); Location location = locati
浏览 2
提问于2016-03-22
得票数 1
2
回答
尝试用手机塔定位,但仍然返回null
android
、
gps
首先,它试图通过GPS定位,并
检查
位置
是否
可用
。如果没有,它就会试图通过网络塔。当GPS打开时,它工作正常。(provider); if(location==null) { provider =
LocationManager.NETWORK_PROVIDER
浏览 6
提问于2017-09-06
得票数 1
回答已采纳
1
回答
如果GPS不打开,活动崩溃,如果GPS不
可用
,可以使用COARSE_LOCATION吗?
android
当我用设备上关闭的GPS加载此活动时,它会使应用程序崩溃。如果可能的话,如果全球定位系统被关闭,转而使用COARSE_LOCATION,也将是令人惊奇的,不知道这会有多容易。public class SunriseSunset extends Activity implements OnClickListener { public Button setLocationJapan; publ
浏览 1
提问于2013-04-19
得票数 0
回答已采纳
2
回答
确定位置提供商- Android
android
、
location-client
我想知道
是否
有一个确定哪个位置提供商是用来获取位置。无论我在里面还是外面,getProvider()都会返回"fused“。我只需要告诉用户,他不能获得准确的位置,可能是因为他在里面。
浏览 4
提问于2014-10-30
得票数 0
1
回答
getLastKnownLocation使用GPS_PROVIDER和NETWORK_PROVIDER返回NULL
android
、
android-studio
、
locationmanager
(LocationManager.GPS_PROVIDER);用Android在Nexus 5上进行测试
浏览 3
提问于2016-04-20
得票数 3
2
回答
Android位置管理器
android
、
google-maps
、
location-services
是否
可以关闭定位服务,完全通过WIFI获取用户位置?我试图禁用定位服务,但NETWORK_PROVIDER返回false。
浏览 2
提问于2016-03-16
得票数 0
1
回答
我无法获得GPS定位
java
、
android
、
gps
、
geolocation
、
location
1.下面的代码给出了网络位置,但没有给出GPS位置3.当我禁用我的网络时,它只显示最近的已知位置5.如果网络
可用
,则从网络获取位置LocationManager.GPS_PROVIDER); .isProviderEnabled(
LocationManager.NETWORK_PROVIDER</e
浏览 2
提问于2014-04-19
得票数 0
2
回答
如何
使用NETWORK_PROVIDER获取经度和纬度?
android
我的权限
是否
不完整??LocationManager LM1=(LocationManager) getSystemService(Context.LOCATION_SERVICE); LM1.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER
浏览 2
提问于2013-07-13
得票数 1
回答已采纳
1
回答
在Android屏幕的上半部分显示当前位置
java
、
android
、
google-maps
、
android-mapview
、
locationmanager
LocationManager.GPS_PROVIDER); location = locationManager locationManager.requestLocationUpdates(
LocationManager.N
浏览 1
提问于2012-08-09
得票数 2
回答已采纳
2
回答
根据
可用
性在gps和网络提供商之间切换
android
、
geolocation
、
gps
、
gsm
locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);} else if(network_enabled) { // Checking for GSM locationManager.requestLocationUpdates(
LocationManager
浏览 0
提问于2011-12-28
得票数 5
回答已采纳
1
回答
我应该为全球定位系统和网络提供商使用单独的locationManager吗?
android
、
networking
、
gps
、
locationmanager
我
是否
可以使用相同的locationManager为gps和网络提供商请求更新,或者我应该创建两个locationManagers和单独的onLocation更改函数等。我真的对此感到困惑
浏览 2
提问于2011-08-03
得票数 1
回答已采纳
3
回答
如何
从Android系统的GPS中获取坐标?
android
、
gps
locationManager.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER
, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, this); isNetw
浏览 2
提问于2015-10-11
得票数 3
2
回答
IllegalArgumentException:提供程序不存在:在地图V1上为空
android
、
location
、
location-provider
LocationManager.GPS_PROVIDER, 0, 0, locationListener); locationManager.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER
浏览 53
提问于2013-12-18
得票数 25
2
回答
谷歌地图当前位置NullPointerException
android
、
maps
映射问题private void initilizeMap() { SupportMapFragment mapFragment = (SupportMapFragment) fragmentMana
浏览 3
提问于2014-06-28
得票数 0
回答已采纳
1
回答
来自以太网的Android设备位置
android
、
geolocation
、
location
、
ethernet
是否
存在基于eth1的设备的大致地理位置的确定。我尝试了下面的示例代码,但是它对以太网连接失败了。locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);<uses-permission android:name
浏览 1
提问于2014-12-04
得票数 0
回答已采纳
3
回答
在后台获取当前位置
android
、
gps
、
currentlocation
void onProviderDisabled(String provider) {
如何
在后台获取当前位置
浏览 2
提问于2014-11-17
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
即时通信 IM
云直播
活动推荐
运营活动
广告
关闭
领券