hi,
read FN (nokia) docs about JSR179 implementation:
http://www.forum.nokia.com/main/reso..._services.html
I've already made some prototyping and (having only one Nokia device with that api) for me it seems that:
- location provider availability is tested by implementation and obtaining reference returns immadiately
- then implementation uses its own way to find out what data is available and expose it to java via jsr179 api,
for example on my device implementation automatically:
- mark that provider is available (even if device bt and bt gps module are switched off)
Code:
locationProvider = LocationProvider.getInstance(null);
and then:
Code:
int state = locationProvider.getState();
- internally tries to establish connection to bt module skipping providing location data from operator (not sure why - I've contacted my service provider tech support and don't received a word about that yet), if bluetooth is switched off one is asked about enabling bt, etc,
so it means its up to implementaiton to provide data to our java application and except of Criteria object we don't have much control about that I think (I was wondering about asking FN team about that implementation details after playing today with gps module - I was measuring alt differencies between my flat and flat where I'm taking math lessons each Friday
)
location is always type of:
- MTA_UNASSISTED
- MTE_SATELLITE
- MTY_TERMINALBASED
on my 3250 device while using ld-3w nokia gps module,
regards,
Peter