Capture Map to PNG

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Capture Map to PNG

Postby neha_a » Sat Sep 18, 2010 4:11 am

Hi Dear Guys,

My requirement is to capture the Map along with overlays on it & save it as PNG file on SDCard.....Kindly help this newbie girl get through the solution please.....

Thanks in advance.....
neha_a
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Sep 18, 2010 4:00 am

Top

Re: Capture Map to PNG

Postby jonbonazza » Mon Sep 20, 2010 6:36 pm

I could be wrong, but I believe your only option is to take a screenshot. In order to do this, however, you would need to be on a rooted device.
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: Capture Map to PNG

Postby divkovi1 » Fri Sep 24, 2010 5:22 pm

Bitmap image = Bitmap.createBitmap(mapView.getWidth(), mapView.getHeight(), Bitmap.Config.RGB_565);
mapView.draw(new Canvas(image));
divkovi1
Freshman
Freshman
 
Posts: 3
Joined: Thu Jul 01, 2010 11:51 pm

Re: Capture Map to PNG

Postby Vish0306 » Thu Sep 30, 2010 1:53 pm

can you please share your code ..so that i can have better understanding of your Error.
Regards:
SEVish
Vish0306
Junior Developer
Junior Developer
 
Posts: 16
Joined: Thu Feb 18, 2010 5:59 pm
Location: India

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 3 guests