View Single Post
Old 09-29-2009, 04:19 PM   #1 (permalink)
OttoKruger
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default GPS location on Curve

Please Login to Remove!

I use the code presented below for getting GPS location on Storm. When I launch my app on Curve I cannot get location. I was waiting for 10 minuts and then I stopped app. Does Curve or any other non-touchable devices requre somthing else for getting location?

Quote:
Criteria criteria = new Criteria();
criteria.setHorizontalAccuracy( 1000 );
criteria.setVerticalAccuracy( 1000 );
criteria.setCostAllowed( false );
criteria.setPreferredPowerConsumption( Criteria.POWER_USAGE_MEDIUM );

QualifiedCoordinates qualifiedCoordinates = null;
LocationProvider locationProvider = LocationProvider.getInstance( criteria );
Location location = locationProvider.getLocation( -1 );
qualifiedCoordinates = location.getQualifiedCoordinates();
Offline   Reply With Quote