2

How can we run Here Maps embedded in an Android app specifically for Nokia X? We would like the app route to a location we will define from the current location.

In Google Maps we did it as follows.

Uri.parse("http://maps.google.com/maps?   saddr="+myLocation.latitude+","+myLocation.longitude+"&daddr="+latLng.longitude+","+latLng.latitude));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addCategory(Intent.CATEGORY_LAUNCHER );    
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");

Thanks

Melih Büyükbayram
  • 3,100
  • 2
  • 17
  • 16
attila
  • 47
  • 4

1 Answers1

3

HERE maps also supports google.navigation and geo schemes. If you want to navigate somewhere, you can use google.navigation scheme:

adb shell am start -a android.intent.action.VIEW -d google.navigation:q=Vuores

If you just want to show a location on map, use geo scheme

adb shell am start -a android.intent.action.VIEW -d geo:61.437424,23.81297
riksa
  • 166
  • 2
  • Thanks but due to Nokia X limitations I need to do this with Here Maps. – attila Apr 02 '14 at 14:20
  • did you check what was suggested. There is only HERE maps in Nokia X, and riksa says its supports the same format as google, so if that is still lagging something, then please specify in details. – Dr.Jukka Apr 02 '14 at 15:52
  • Thanks @Dr.Jukka. I misunderstood riksa's comment. I will give it a try. Thanks riksa. – attila Apr 03 '14 at 06:05