Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9243935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:54:55+00:00 2026-06-18T08:54:55+00:00

Not so long ago I updated my map class on my app to use

  • 0

Not so long ago I updated my map class on my app to use Google Maps Android API v2. In my app I use the class Location to save my current location. when I tried to add a marker with my location on the map with the code:

Log.e(tag,"adding user_marker at lat = " + Common.curLocation.getLatitude() 
+ ",lng = " + Common.curLocation.getLongitude());
User_Curr_Position = new LatLng(Common.curLocation.getLatitude(),
  Common.curLocation.getLatitude());
mUser_Curr_Position_Marker = mMap.addMarker(new 
MarkerOptions().position(User_Curr_Position).title("Your Position").draggable(true));

it gave me the wrong location (somewhere in the deep sea). I checked that I am not entering the wrong parameter by taking the lat and long from the Log (“adding user_marker at lat=32.165603,lng=34.81224”) and found the right location on google maps (on the internet).
Can someone tell me what am I doing wrong ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:54:57+00:00Added an answer on June 18, 2026 at 8:54 am

    Well, you are passing in the user’s latitude in as the longitude.

    User_Curr_Position = new LatLng(Common.curLocation.getLatitude(),  Common.curLocation.getLatitude());
    

    It needs to be

    User_Curr_Position = new LatLng(Common.curLocation.getLatitude(),  Common.curLocation.getLongitude());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not so long ago I started to learn to use System.Reflection.Emit namespace. I'm now
I posted not so long ago a class diagram for an application that I
I was suggested, not long ago, to change my code to use PDO in
I Google'd not long ago and came across this solution to loop out information
Not long ago developed a system based on compact framework for Windows Mobile Professional
Somebody asked similar question not long ago. But nobody answered comprehensively. Assume I have:
not so long ago i found out that you can do this in css
I remember the days (not too long ago, really) when log4net came along with
This enum used to exist not too long ago. I am upgrading to Castle
I was talking to someone in a bar not too long ago, and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.