×
Namespaces

Variants
Actions

Archived:Location.getCourse() and Location.getSpeed() not working in S60 3rd FP1 Emulator (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Issue applies to out of scope platform versions.

Article Metadata
Tested with
Devices(s): Emulator
CompatibilityArticle
Created: schoenke (03 May 2009)
Last edited: hamishwillee (23 Jul 2013)

Description

To get a LocationProvider that provides current speed and course, the criteria have to be set accordingly before retrieving the instance of LocationProvider:

Criteria criteria = new Criteria();
criteria.setSpeedAndCourseRequired(true);
LocationProvider locationProvider = LocationProvider.getInstance(criteria);

This works fine for S60 3rd FP1 devices. But if the setSpeedAndCourseRequired criterion is set in the emulator, the call of getInstance() always returns null.

The purpose of an emulator is voided if it doesn't behave like the devices it represents.

This page was last modified on 23 July 2013, at 07:41.
49 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×