首页 移动开发 Android     /    AndroidWIFI定位简单DEMO实例代码

AndroidWIFI定位简单DEMO实例代码

上传者: bruce_shan | 上传时间:2015/9/11 11:49:23 | 文件大小:1.62MB | 文件类型:zip
AndroidWIFI定位简单DEMO实例代码
解压ch10内的压缩文件WiFiLocation.zip,导入工程WiFiLocation;
打开清单文件,查看使用WiFi定位的权限;
打开程序文件MainActivity,查看检测WiFi能否打开及开启WiFi的代码;
查看位置管理器方法requestLocationUpdates()中位置监听器的用法,并与GPSLocation工程中的位置器用法相比较;
查看使用WiFi定位获取经纬度的代码;
部署工程并做运行测试;
打开清单文件,屏蔽使用WiFi中的第二条权限,验证部署工程时会失败

文件下载

资源详情

[{"title":"(48个子文件1.62MB)AndroidWIFI定位简单DEMO实例代码","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'>672.80KB</span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>5.82KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>9.14KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>17.47KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>3.04KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"jarlist.cache <span style='color:#111;'>120B</span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-ac61f99d0492e0e22b0c1c4ac3412f7e.jar <span style='color:#111;'>227.16KB</span>","children":null,"spread":false},{"title":"android-support-v4-26f93da41fe29c59c2e8a1421eda2578.jar <span style='color:#111;'>227.16KB</span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"wifilocation","children":[{"title":"MainActivity.class <span style='color:#111;'>1.74KB</span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'>357B</span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'>2.02KB</span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'>421B</span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'>503B</span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'>425B</span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'>479B</span>","children":null,"spread":false},{"title":"MainActivity$1$1.class <span style='color:#111;'>1.82KB</span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'>358B</span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'>406B</span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'>733B</span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'>490B</span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'>449B</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'>40.17KB</span>","children":null,"spread":false},{"title":"WiFiLocation.apk <span style='color:#111;'>271.71KB</span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'>1.14KB</span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'>334B</span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'>263B</span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'>391B</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>7.48KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>12.22KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>24.20KB</span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'>229B</span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'>697B</span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'>220B</span>","children":null,"spread":false}],"spread":true},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'>277B</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>3.69KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'>203B</span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'>912B</span>","children":null,"spread":false}],"spread":true}],"spread":false},{"title":"proguard-project.txt <span style='color:#111;'>781B</span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'>50.19KB</span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"wifilocation","children":[{"title":"BuildConfig.java <span style='color:#111;'>166B</span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'>2.59KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>177B</span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"wifilocation","children":[{"title":"MainActivity.java <span style='color:#111;'>2.57KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'>848B</span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'>475B</span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'>563B</span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'>1.14KB</span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'>606.89KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • ayrascal:
    完全不能用2020-04-29
  • ayrascal:
    完全不能用2020-04-29
  • rnpoo:
    虽然不是我想要的那种,但是还是能学到点东西。2016-10-02
  • 毁人灬不倦:
    虽然不是我想要的那种,但是还是能学到点东西。2016-10-02
  • u014403551:
    什么鬼?浪费我的积分2016-04-19
  • 快乐的猪123:
    什么鬼?浪费我的积分2016-04-19

免责申明

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