1

I want to now how to draw a path between tow points in mapFragment. The first one is the user current position, and the second is pre-defined position. After searching online, I found a lot of complex answers that consider as an Android Programming Professional! Also, most of answers are based on API v1 that uses mapView to present the map which now is deprecated as I read.

What I have now is an activity with a mapFragment , and I can run my app and see the world on the map.

please , keep simple as you can :) .

Shareef Morad
  • 23
  • 1
  • 7
  • whether you are using android map v2? – Shadow Apr 29 '13 at 06:11
  • Try this it worked for me http://stackoverflow.com/questions/14495030/google-map-api-v2-get-driving-directions/15053901#15053901 – Nitin Gupta Apr 29 '13 at 06:15
  • thank you "Nitin Gupta" , I try it before asking. It self runs OK, but I don't know how to integrate it in my project, I get "Force close" every time the activity starts. – Shareef Morad Apr 29 '13 at 06:49
  • @user2330755 - first thing..can you run application successfully?i mean as you have mentioned you did get "Force close" every time.so i m asking. – TheFlash Apr 29 '13 at 07:01
  • yes , I can import the project shown in second comment, and run it in my mobile successfully, after that I try to copy its classes and XML to my app and modify my manifest file , then I install my app . the result is "Force Close" . – Shareef Morad Apr 29 '13 at 14:22
  • I capture the error from LogCat : http://s14.postimg.org/n2b3mujap/Log_Cat.png – Shareef Morad Apr 29 '13 at 15:16
  • The Link is available [here](https://stackoverflow.com/questions/14702621/answer-draw-path-between-two-points-using-google-maps-android-api-v2). Surely this is useful to you.I get same thing as you need from this link. Hope this will help you too. – Dhaval Patel Nov 18 '13 at 12:06

0 Answers0