我打电话

locationManager.requestSingleUpdate(locationManager.GPS_PROVIDER, locationListener, Looper.myLooper());

一串
scheduleTaskExecutor.scheduleAtFixedRate();

我显示logcat消息如下:
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_location_cb()
02-02 00:13:19.152: D/libgps(482): proxy_gps_sv_status_cb()
02-02 00:13:19.472: D/dalvikvm(3221): GC_CONCURRENT freed 401K, 10% free 7691K/8460K, paused 2ms+2ms, total 23ms
02-02 00:13:19.482: I/wm.cs.service(3221): count=11 location: Location[gps 37.284294,-76.723810 acc=8 et=+7m30s247ms alt=-11.550232802143439 vel=0.0 {Bundle[mParcelledData.dataSize=44]}]
02-02 00:13:20.142: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:20.142: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:20.142: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:20.142: D/libgps(482): proxy_gps_nmea_cb()
02-02 00:13:20.142: D/libgps(482): proxy_gps_nmea_cb()
... ...

这是否意味着GPS目前正在工作,消耗电池?

最佳答案

据我所知,全球定位系统确实在运行和消耗能量。我暂时没有找到解决办法,但如果找到了,我会告诉你(如果找到了,请回答你的问题,这样可以节省我一些时间!)

关于android - 在Android中,proxy_gps_nmea_cb()的作用是什么?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14658880/

10-12 06:18