I am creating an application which tracks the users location using GPS, stores the longitude and latitude in a database using a content provider then output the first long and lat to a mapview.
I am able to create the cursor using this line of code:
However, when I make a call to move to the first row in the database, I receive a NullPointerException:
Edit: To make it clear, I am able to store the longitude, latitude and time in millis in the database, I am just unable to retrieve the data via a cursor.
I can provide more code if needed, but I would greatly appreciate any help.
Users browsing this forum: Yahoo [Bot] and 21 guests