1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Maps intent.... using a pin?

Discussion in 'Android App Developers' started by UNEXPECTED62, Mar 25, 2010.

  1. UNEXPECTED62
    Offline

    UNEXPECTED62 New Member

    Joined:
    Dec 28, 2009
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    0
    [FONT=Courier, Monospaced]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?
    [/FONT][FONT=Courier, Monospaced]
    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.
    [/FONT]
Search tags for this page

android open maps with longitude with pin

,

creating map intent drop pin android

,

maps+via+intent+ android

,

open map via intent with pin