My Map Navigation

My Map Navigation

Source code introduction

Based on Baidu LBS, realize the positioning and navigation of the map. There is HTTP SOAP communication client code. If you are interested, you can ask me for the server code. Tip: The positioning function is only effective on real devices.

Source code running screenshot

  1. protected   void onStart() {
  2. // TODO Auto-generated method stub  
  3. super .onStart();
  4. FunctionList.setOnItemClickListener( new OnItemClickListener() {
  5.   
  6. @Override  
  7. public   void onItemClick(AdapterView<!--?--> arg0, View arg1, int arg2, long arg3) {
  8. // TODO Auto-generated method stub  
  9. Class<!--?--> TargetClass = null ;
  10. switch (arg2) {
  11. case   0 :
  12. TargetClass = BaseMapDemo.class ;
  13. break ;
  14. case   1 :
  15. TargetClass = NaviDemo.class ;
  16. break ;
  17. case   2 :
  18. TargetClass = LocationActivity.class ;
  19. break ;
  20. case   3 :
  21. TargetClass = GeoFenceActivity.class ;
  22. break ;
  23. case   4 :
  24. TargetClass = NotifyActivity.class ;
  25. break ;
  26. case   5 :
  27. TargetClass = QuestActivity.class ;
  28. break ;
  29. /*
  30. case 6:
  31. TargetClass = Client.class;
  32. break;
  33. case 7:
  34. TargetClass = HttpConnect.class;
  35. break;
  36. */  
  37. default :
  38. break ;
  39. }
  40. if (TargetClass != null ){
  41. Intent intent = new Intent(MainActivity. this , TargetClass);
  42. startActivity(intent);
  43. }
  44. }
  45. });
  46. }
  47.   
  48. private List<string> getData(){
  49.            
  50. List<string> data = new ArrayList<string>();
  51. data.add( "basic map function" );
  52. data.add( "Basic navigation function" );
  53. data.add( "Basic positioning function" );
  54. data.add( "geofence function" );
  55. data.add( "Location message reminder" );
  56. data.add( "FAQ Description" );
  57. //data.add("SOCKET client");  
  58. //data.add("HTTP client");  
  59.            
  60. return data;
  61. }</string></string></string>

Source code link: http://download..com/data/1968330

<<:  The movie "The Interview" is now available on Apple's iTunes store

>>:  Come and join 51CTO's offline open class: guide you to build high-quality mobile apps and win iPad mini and other prizes!

Recommend

Xiaohongshu’s hot-selling notes trends!

There were Labor Day and other promotional events...

Yuanfudao Children's Programming Course L1+L2

LEVEL1 Course Content Introduction Based on face ...

I want to develop an APP, what should I do if I don’t have a backend?

[[155146]] What should I do if I just started a b...

Volvo confirms listing plan, Geely's equity dilution

Recently, Volvo Cars, a subsidiary of Geely, issu...

Looking back at Tencent over the years

[[127967]] The greatest competitive advantage of ...

A comprehensive explanation of the Android advanced view coordinate system

Preface First of all, I wish you all a happy Nati...

Subsidy policy for rural veterans over 60 years old in 2022: How much per month?

Soldiers shoulder the heavy responsibility of def...

Soul Product Analysis

Socializing with strangers is something that many...

Traffic generation and promotion: How to find target users before promotion?

Finding target users and conducting targeted oper...

China searches for "Earth 2.0" to open a new era of exoplanet exploration

Written by reporter Duan Ran (internship) Edited ...

SOP for live broadcast room with monthly sales of one million

Today I will share with you a very important modu...