How to point a marker on google map according to our choice.

by » Sat, 23 Apr 2011 06:30:00 GMT

Sponsored Links
 I have develop a simple GPS android application,I am able to view the
Google map but I want to point a marker on the map according to our
choice  and I would like to get latitude and longitude.


How to point a marker on google map according to our choice.

by lbendlin » Sat, 23 Apr 2011 19:10:31 GMT

 Your question is ambiguous. Please state the problem you have and what you have 
tried to solve it. 


Sponsored Links

Re: How to point a marker on google map according to our choice.

by jyotibhusan roul » Mon, 25 Apr 2011 12:35:38 GMT

 Hi.actually in my application I have put a marker on default place(e.g
San Jose),but I want to put a marker in another place(e.g Newark),and
get latitude and longitude of the place.This thing I needed.

Thanks & Regards,

Jyoti Bhusan


Re: How to point a marker on google map according to our choice.

by lbendlin » Mon, 25 Apr 2011 21:46:52 GMT

 how are you placing the marker? The user touching the map? That may not be 
overly accurate. If that is good enough you can use the getProjection() 
function #getProjection%28%29


Other Threads

1. drop down list with id/value pair


I want Drop Down List with id/value pair.

I already see the example of spinner But I want dynamic id as result
when value is select not default id.

Like srings.xml :-

<string-array name="planets_array">
        <item id="1">Mercury</item>
        <item id="2">Venus</item>
        <item id="3">Earth</item>
        <item id="4">Mars</item>
        <item id="5">Jupiter</item>
        <item id="6">Saturn</item>
        <item id="7">Uranus</item>
        <item id="8">Neptune</item>

When fetch using below code :-

public void onItemSelected(AdapterView<?> parent,
        View view, int pos, long id) {
      Toast.makeText(parent.getContext(), "The planet is " +
                  parent.getItemIdAtPosition(pos)+" -

it show id is 0 when Select Mercury But I want it show 1 as set in id.
Please help me out.

Thanks with Regards
Saurabh Goyal


2. SJXP 2.0 Released - Simple XML Parsing in Android

Simple Java XML Parser (SJXP) 2.0 is released.

SJXP is a very light weight (4 class) abstraction to XML Pull Parsing
on Android (and Java in general) that allows you to use XPath-like
expressions in parsing without needing to worry about while loops,
event handling, try-catch blocks, etc.

A quick example of parsing story links from an RSS feed would look
like this:
IRule linkRule = new DefaultRule(Type.CHARACTER, "/rss/channel/item/
link") {
        public void handleParsedCharacters(XMLParser parser, String
text, Object userObject) {
                // Also store the link, or something equivalently

XMLParser parser = new XMLParser(linkRule);

You just specify a type for the rule, provide a path in the XML you
want parsed and then override 1 of 3 default no-op handlers and then
you can just sit around waiting for data to show up at your doorstep.
Namespaces are also supported, please see the project page for a lot
more documentation, examples and benchmarks.

Performance + Ease of Use is the big win and the design focus of SJXP.

New and Noteworthy
* Memory usage and CPU usage are a magnitude times smaller than what
they were in 1.x series. Spent some quality time with HPROF finding
and removing hotspots.
* A new TAG type of rule is supported if you are just analyzing XML
metrics and don't want the overhead of parsing data out of it.
* Support for user-object passthrough was added to make it easier to
get at data stores inside of the handlers.


SJXP is licensed under the Apache 2 license.

Good or bad feedback is appreciated!


3. Android on PB11MPCORE

4. Aapt.exe keeps crashing with ADT 10.

5. Request a webpage and display in app

6. java.lang.VerifyError error at the time of using gson library on HTC desire

7. Recent Changes text not sticking