locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,10000,10,locationListener);
希望是10秒钟触发一次,可是每当坐标改变时就触发了,,为什么啊??????
希望是10秒钟触发一次,可是每当坐标改变时就触发了,,为什么啊??????
解决方案 »
- 一个令人无比蛋疼的线程里更新ListView的问题
- 菜菜求教~有关自定义标题栏高度的问题
- textView 中英文字符串省略号问题
- 考勤表
- 哪位帮我找几篇关于蓝牙的帖子的阿
- android 开发关于调用系统录音机或现有录音设备,系统录音为小米2。
- Caused by:java.lang.ClassNotFoundException:Didn't find class"org.bytedeco.javacp
- 第一行代码中探究活动的项目
- android6.0 camera2 录像 MediaRecorder.getsurface 失败
- 安卓串口能连接,但是对接inputstream时提示没权限
- gallery 边缘的效果
- HTC G12手机上自己制作电子书(类似exe的,不要阅读器的)用什么软件比较好?
the minimum time interval for notifications, in milliseconds. This field is only used as a hint to conserve power, and actual time between location updates may be greater or lesser than this value
你可以通过handler来10s中调用一次requestLocationUpdates
“在service里面启动一个Thread,在run中sleep(10000);后执行handler.sendMessage(),更新位置”
这个方法 有过的有木有 可行不?