我现在想编一个小程序调用手机自带的gps功能记录每天的行为经历怎么操作呢?
借助LocationManager实现LocationManger locationManager=(LocationManager)this.getSystemService(Context.LOCATION_SERVICE);然后用LocationListener,位置监听,监听位置变化,监听设备开关与状态。