location获取时,如果错误会抛异常
SecurityException if no suitable permission is present for the provider.
IllegalArgumentException if provider is null or doesn't exist要么没添加权限,要么就是getLastKnownLocation参数为null
SecurityException if no suitable permission is present for the provider.
IllegalArgumentException if provider is null or doesn't exist要么没添加权限,要么就是getLastKnownLocation参数为null
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货