Screenshot in google map android - android

Is it possible to take a screenshot of the google map programmatically in android that is currently outside of my screen/viewing window.

It is sadly not capable of doing that right now. But you can hard code it. there is a read the location method (and you can add distance or radius d to that to find other locaitons and record them)on google maps api

Related

Navigation in android app for updating of destination location

Scenario :
In my android app, I have a Google Map that is showing me my friend's location. My friend and I can move from their position and I still want to get him (finding friend's location/updated_location is not an issue). To reach him fast, I am implementing navigation functionality to it.
Question :
How can I implement navigation to Google Map? I heard about OpenTripPlanner, but I'm not sure if I can use it in Google Maps.
As my friend's and my location can change, I want to update the navigation path from my current location to his current location. (An Idea I have is to recalculate the path when friend's location changes).
I also want to implement voice navigation to my app. How can I get this?
Any suggestion which will satisfy above requirement will be appreciated.
Please suggest sample code and working functions that can be used.
You can take a look at this blog post I wrote on implementing a navigation Polyline to your Google Maps API V2:
Google Maps API V2 Polyline Navigation
There you will find the needed method to get the navigation instruction from Google Directions API and to paint it on your map.

Arrow marker on google maps API for Android

I need to develop an application for Android that uses the Google Maps API.
I the need to use a marker that show me my position and rotation exactly like the one shown in the figure (Link: http://3.bp.blogspot.com/-Sy61Gjk7aKA/Tw2Lo553AiI/AAAAAAAAAVI/oJ7tiGb-lts/s1600/2.jpg).
Is it possible to realize?
I wrote an answer to a similar question: Google Map Heading Marker or Indicator
I haven't tried it in 3D, but there's no reason why it shouldn't work.

Replace a map of a building with Google Maps Android API

Im using the latest Google Map API. What I would like to do is that I have an image of plan of a building. I would like to put this on the correct location and display this image instead of the normal map. It would kinda be like if you zoom in alot on a train station and you get more details.
Is there any way to do this?
There is an example with the official Google Maps for Android API sample code (installation how-to) called GroundOverlayDemoActivity.java.
You could try this and check if it is a starting point for further investigations.
Here is a screenshot of this activity:

Full implementation of Google Maps Directions Service on My Android App

I have searched for hours on the web for an example of implementing the direccions service on my android app.
I am using the google maps android api 2.
Basically I want the directions from the actual position and a marker position selected by the user.
I want to make clear that I donĀ“t want to launch a web browser or the google maps aplication, I want to implement the service on my own app.
Till now I found some examples about drawing the route on tha map, which are ok
http://wptrafficanalyzer.in/blog/gps-and-google-map-in-android-applications-series/
Get driving directions using Google Maps API v2
so I just miss the indications part of the service so y can show on my own listview with arrows (turn to left , to right , etc).
Thanks for reading my question
I'm not sure what you want. In your second link about Google Map API v2, the data for drawing maps comes from maps.googleapis.com .You can see https://developers.google.com/maps/documentation/directions/ for more documentation about that.
The xml returned from maps.googleapis.com include <html_instructions> tag which contains instruction like turn left or turn right. So you just need to parse that xml and use <html_instructions> tag for information you need on your listview.
I hope this helps.

How do take an existing map and overlay it into google maps on the android platform?

I am working on making a interactive campus map. I am wanting to take an image (below) and overlay it onto Google maps and then add interactive points of interests. I am not seeing how to add or merge the image to the map. Can this be done? Are there any examples out there I missed?
If you want to replace the google map background.
From my experience, I could say no. It can't be done
But if you want to make it like transparent you can put Your map on top of google map and just set transparent.
However, somebody already been done this before. you might got some idea if you see this
http://www.maplib.net/
http://lifehacker.com/213627/embed-any-image-into-a-google-map
Google Maps Developer Documentation

Categories

Resources