Skip to content Skip to sidebar Skip to footer

Get Geopoints From Sqlite Db

I created an SQlite database to store on it all latitudes and longitudes to display them in map. For the add of the values i didn't encouter any problem, i used this code: CoordBD

Solution 1:

Quoting myself from my reply to you on the android-developers Google Group, since you elected to cross-post:

  1. Pass a Cursor to your ItemizedOverlay that contains your coordinates, retrieved from your database

  2. Implement size() in your ItemizedOverlay to return getCount() from the Cursor

  3. Implement getItem() in your ItemizedOverlay to moveToPosition() on the Cursor, read out the latitude and longitude, convert to microdegrees, create a GeoPoint, and return it

  4. Use the ItemizedOverlay on your MapView

Post a Comment for "Get Geopoints From Sqlite Db"