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:
Pass a
Cursor
to yourItemizedOverlay
that contains your coordinates, retrieved from your databaseImplement
size()
in yourItemizedOverlay
to returngetCount()
from theCursor
Implement
getItem()
in yourItemizedOverlay
tomoveToPosition()
on theCursor
, read out the latitude and longitude, convert to microdegrees, create aGeoPoint
, and return itUse the
ItemizedOverlay
on yourMapView
Post a Comment for "Get Geopoints From Sqlite Db"