Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Problem / Question regarding GPS Time Stamp

Problem / Question regarding GPS Time Stamp

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Problem / Question regarding GPS Time Stamp

Postby dinoguan » Sat Oct 17, 2009 8:16 am

So I'm assuming that Location.getTime() returns the UTC at which the phone was traveling at the speed reported by Location.getSpeed().

What I am trying to do is calculate how long ago the getSpeed() value was actually recorded.

I tried doing ( java.lang.System.currentTimeMillis() - Location.getTime ) but I am getting values
like 14000 to 16000, so 14 to 16 seconds!

I noticed that java.lang.System.currentTimeMillis() does not recommend using it for precise timeout calculations.
Could some float in this value be my problem?

If not, how would I go about properly calculating how long ago the location fix was actually occured.

As some others experience, as well as with my own, I notice a good 3 second delay between the Location.getSpeed() value and the actual velocity of the phone. I am trying to figure out exactly how long this delay is.


Thanks.
dinoguan
Freshman
Freshman
 
Posts: 4
Joined: Tue Nov 11, 2008 6:01 am

Top

Return to Map Problems

Who is online

Users browsing this forum: Exabot [Bot] and 10 guests