application not consistently storing GPS data into local database

0 views
Skip to first unread message

craigr

unread,
Jan 4, 2010, 1:44:56 AM1/4/10
to Seattle Android User Group, bill.t...@gmail.com
Might be able to suggest what might be happening with our Android
application?

I have an application that is designed to store GPS points into a
local database at a regular intervals as you travel around, however,
it seems that our application does not consistently do this. When I
run the application, there are large sections of data in the database
that are empty, in that there are no stored points for long
stretches. When looking at the data, it appears as if the application
has stopped working, and then unexpectedly it starts working again,
storing data as it is designed to do.

I know that the Android operating system is designed to shed processes
when needed to free up resources, but I do not think that this is the
case as there are only one or two applications running at a time on
the phone when this happens. Might you have any ideas as to what
might be happening? I am expecting the process to store the GPS
position data to the database consistently. Any advice or
suggestions?

Thanks,

Craig

wescorp

unread,
Jan 10, 2010, 12:37:57 PM1/10/10
to Seattle Android User Group
I think what your looking for is the AlarmManager class.

You can find a tutorial by Mark Murphy here:
http://www.androidguys.com/2009/04/02/wake-up-with-the-alarm/

also:
http://www.google.com/search?hl=en&q=android+alarmmanager+tutorial&aq=1&oq=android+alarmmana&aqi=g3

Cheers,
Wes

Reply all
Reply to author
Forward
0 new messages