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

WeChat Mini Programs Major Upgrade: Open Cloud Development

After a rare month of silence, WeChat Mini Progra...

When products become homogenized, how can operations find opportunities?

In this article, let’s talk about how operators c...

7 Common Marketing Methods Marketers Must Know (I)

Every year there are many good marketing cases . ...

Deloitte: Global Healthcare Outlook Report 2022

In 2022, two years into the COVID-19 pandemic, th...

How much does Baidu paid ranking cost per month?

It depends on where you open Baidu, such as paid ...

Can LeTV X55, the evolution of super TV, become a new benchmark in the industry?

When LeTV first entered the smart TV field, it na...

Why does Xiaomi make air purifiers?

A few days ago, Lei Jun announced on his Weibo th...

Can Android One allow Google to take back control of Android?

While iPhone 6 and iPhone 6S have become a hot to...