Geocoding is a concept used toconvert an address(or location) to a latitude/longitude pair.

It's provided inandroid.locatin.Geocoder with the following methods.

  1. getFromLocation
  2. getFromLocationName
  3. getFromLocationName*
The way to get location manager service is as below. LocationManager locMgr = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
The LocationManager service is a system-level service. System-level services are services that you obtain from the context using the service name; you don't instantiate them directly, and it also provides geographical location details by using three types of location providers:
  1. GPS providers LocationManager.GPS_PROVIDER
  2. Network providers LocationManager.NETWORK_PROVIDER
  3. passive provider LocationManager.PASSIVE_PROVIDER
Permissions:
  1. android.permission.ACCESS_FINE_LOCATION
  2. android.permission.ACCESS_COARSE_LOCATION
Use the flowing source to invoke location settings screen. startActivityForResult(new Intent(android.provider.Settings.ACTION_LOCATIN_SOURCE_SETTINGS), 0)
GPX: GPS Exchange Format KML: Keyhole Markup Language
Use MyLocationOverLay to show where you are now.
<Receiver android:name=".ProximityReceiver">    <intent-filter>        <action android:name="com.androidbook.android.intent.PROXIMITY_ALERT" />       <data android:scheme="geo" />    </intent-filter></Receiver>



更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. textView自动滑动
  2. Android开发学习笔记:圆角的Button
  3. 安卓开发09:常用控件-TextView文本展示
  4. 调用与外部接口
  5. Android-Google自己的下拉刷新组件SwipeR
  6. 搭建android编程环境 Eclipse+jdk+SDK
  7. Android完全(退出)关闭应用程序
  8. Android 调用J2EE webservice
  9. Android 判断是否在通话中
  10. 修改和制作Android开机Logo(最终版)