android GPS+Service例子

上传者: lacorey | 上传时间: 2021-05-17 00:07:15 | 文件大小: 60KB | 文件类型: RAR
一个结合了用service获得GPS信息,并用service将gps写入sqlite的gps表里,并用service通过broadcast发送经纬度信息给activity接收,activity通过BroadcastReceiver接收到service发送过来的经纬度信息后,在activity里实时的展示!

文件下载

资源详情

[{"title":"( 31 个子文件 60KB ) android GPS+Service例子","children":[{"title":"serviceDemo","children":[{"title":".project <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"default.properties <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"serviceDemo.apk <span style='color:#111;'> 18.79KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"xtlh","children":[{"title":"service","children":[{"title":"db","children":[{"title":"DBHelper.class <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false}],"spread":true},{"title":"demo","children":[{"title":"R$string.class <span style='color:#111;'> 436B </span>","children":null,"spread":false},{"title":"GPSListAty.class <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 431B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 4.31KB </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"MyService$1.class <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 552B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 349B </span>","children":null,"spread":false},{"title":"MyService.class <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"MainActivity$MyReceiver.class <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 11.46KB </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 11.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"xtlh","children":[{"title":"service","children":[{"title":"db","children":[{"title":"DBHelper.java <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false}],"spread":true},{"title":"demo","children":[{"title":"GPSListAty.java <span style='color:#111;'> 876B </span>","children":null,"spread":false},{"title":"MyReceiver.java <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"MyService.java <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 176B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"list.xml <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"main.xml <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-ldpi","children":[{"title":"icon.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"icon.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"icon.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"xtlh","children":[{"title":"service","children":[{"title":"demo","children":[{"title":"R.java <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • zzzaaawww :
    解决了我的一部分问题,但是程序结构看着没那么清晰
    2015-10-18
  • alawn_sun :
    很不错,挺适用,已经解决我的难题
    2014-12-04
  • 又吹风_Bassy :
    很有参考价值,good!
    2014-11-20
  • one_bullet :
    我也碰到了 Location location = locationManager.getLastKnownLocation(provider); updateWithNewLocation(loca
    2014-10-22
  • supersxl :
    对我的项目也有一定的帮助,感谢分享!
    2014-09-23

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明