I would like to create a mapview that will have text items and a direct me button under it.
So when the activity starts up, it will drop a pin on a location specificed in the previous activity. There will then be a location name and then a direct me button. when the button is clicked it will display the route from the current location.
how do i drop a pin on the mapview itself
Would you reccomend i begin a map intent to show the directions, or could i just update the map view with the directions. (how would i go about doing both)
how do i drop a pin on the mapview itself
Create an ItemizedOverlay
with an OverlayItem
and add it to your map. Here is a sample application demonstrating this.
Would you reccomend i begin a map intent to show the directions, or could i just update the map view with the directions. (how would i go about doing both)
There is no "map intent to show the directions". In terms of how you would "just update the map view with the directions", step #1 is to figure out where you are going to get the directions, since there is no built-in Android API for that.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.