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

How much does it cost to join the Xiantao Fresh Food Mini Program?

How much does it cost to join the Xiantao Fresh F...

ToB content operation: comprehensive review of production and channels

The company I work for is an industry information...

A Guide to KOL Advertising on TikTok

What is Douyin KOL? Users who frequently post vid...

What is user growth operation and what does it do?

From data products to user growth operations , he...

A chicken that grew 5 kilograms in 42 days, was it injected with hormones?

A chicken over a month old was killed innocently?...

Permian, the last days of the Paleozoic Era, the Earth became a purgatory

For the past Humans always have a natural curiosi...

iOS 18.1 battery life test is here, Cook says the upgrade speed is very fast!

Apple pushed the official version of iOS 18.1 thi...

MyBatis-Plus Tutorial for Silicon Valley 2022

Introduction to the 2022 edition of MyBatis-Plus ...

Query traffic information

Source code introduction Select the operator acco...

What have 3.9 billion women gone through to achieve "menstrual freedom"?

In addition to sanitary napkins, modern women'...