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 6829803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:32:36+00:00 2026-05-26T22:32:36+00:00

I have store the Latitude and Longitude of locations in a SQLite Database, how

  • 0

I have store the Latitude and Longitude of locations in a SQLite Database, how would I retrieve these values and place them each in an OverlayItem class for use in Google’s Map code?
i got this question with answer
[1]: Get Latitude and Longitude from SQLite database for use in Android MapOverlay this is really helpful but im new in android unable to understand many things e.g where i should perform this action, in class that is extends MapActivity or in ItemizedOverlay please would anyone explain it step by step it will be highly helpful for all learners. thanks.

  • 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-05-26T22:32:36+00:00Added an answer on May 26, 2026 at 10:32 pm

    You want to implement ItemizedOverlay within the MapActivity class. see example.

    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.drawable.navup);      
    
            MapView mapView = (MapView) findViewById(R.id.mapview);
            mapView.setBuiltInZoomControls(true);
    
    // Get your GeoPoints from SQLLite and use them below for Longitude and Latitude
    
    GeoPoint point1 = new GeoPoint(latitude,longitude); 
    OverlayItem overlayitem1 = new OverlayItem(point1, "City", "State");
    List<Overlay> mapOverlays1 = mapView.getOverlays();
    Drawable drawable1 = this.getResources().getDrawable(R.drawable.map_pin);
    ClevelItemizedOverlay itemizedoverlay1 = new ClevelItemizedOverlay(drawable1, this);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sqlite database with a table full of geographic locations, each stored
I have to store millions of entries in a database. Each entry is identified
So, I have three numpy arrays which store latitude, longitude, and some property value
I have users stored in a database that has latitude and longitude set on
I am using an SQLITE database to store latitudes and longitudes of locations. I
my app needs to store latitude and longitude values parsed from XML into Core
If I store the Latitude and Longitude of a bunch of locations in a
Saving these locations with the name of the locations(Title + latitude and longitude) in
I have to store more than 100 millions of key-values in my HashMultiMap (key
I have to store more than 100 millions of key-values in my HashMultiMap (key

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.