Go Back   Android Forums > Android Discussion > Android Applications
Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.

New Forums: Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old March 25th, 2010, 05:21 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jan 2010
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Maps Intent... how to get a pin?

I'm launching google maps via an intent. If I supply a latitude and longitude, no pin will be displayed on the map. Is there a way to explicitly tell google maps to add a pin, and what text to put on it?

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("geo:" + lat +"," + lon));
startActivity(intent);

Currently, this just zooms into a low level of the coordinates, with no pin on what I actually marked.


Advertisements
UNEXPECTED62 is offline  
Reply With Quote
sponsored links
Reply
Tags
google maps, intent, maps, pin


Go Back   Android Forums > Android Discussion > Android Applications
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:36 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.