源码简介
基于Baidu LBS 实现地图的定位与导航。内有 HTTP SOAP 通信客户端代码,如有兴趣,可向我索取服务端代码。提示:定位功能只能在真机上有效。
源码运行截图
- protected void onStart() {
- // TODO Auto-generated method stub
- super.onStart();
- FunctionList.setOnItemClickListener(new OnItemClickListener() {
- @Override
- public void onItemClick(AdapterView<!--?--> arg0, View arg1, int arg2, long arg3) {
- // TODO Auto-generated method stub
- Class<!--?--> TargetClass = null;
- switch (arg2) {
- case 0:
- TargetClass = BaseMapDemo.class;
- break;
- case 1:
- TargetClass = NaviDemo.class;
- break;
- case 2:
- TargetClass = LocationActivity.class;
- break;
- case 3:
- TargetClass = GeoFenceActivity.class;
- break;
- case 4:
- TargetClass = NotifyActivity.class;
- break;
- case 5:
- TargetClass = QuestActivity.class;
- break;
- /*
- case 6:
- TargetClass = Client.class;
- break;
- case 7:
- TargetClass = HttpConnect.class;
- break;
- */
- default:
- break;
- }
- if(TargetClass != null){
- Intent intent = new Intent(MainActivity.this, TargetClass);
- startActivity(intent);
- }
- }
- });
- }
- private List<string> getData(){
- List<string> data = new ArrayList<string>();
- data.add("基础地图功能");
- data.add("基础导航功能");
- data.add("基础定位功能");
- data.add("地理围栏功能");
- data.add("位置消息提醒");
- data.add("常见问题说明");
- //data.add("SOCKET客户端");
- //data.add("HTTP 客户端");
- return data;
- }</string></string></string>
源码链接:http://down.51cto.com/data/1968330