BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-08-2009, 04:28 AM   #1
evanlr
New Member
 
Join Date: Apr 2009
Model: 9000
PIN: N/A
Carrier: indosat
Posts: 1
Default Fail create criteria to use AGPS method using JSR179

Please Login to Remove!

I read "How_To_-_Define_criteria_to_retrieve_a_GPS_fix" document (I cannot post link), and I code criteria like this
Code:
criteria.setCostAllowed(true);
criteria.setHorizontalAccuracy(500); // I try Criteria.NO_REQUIREMENT too
criteria.setVerticalAccuracy(500);  // I try Criteria.NO_REQUIREMENT too
criteria.setPreferredPowerConsumption(Criteria.NO_REQUIREMENT); // I try Criteria.POWER_USAGE_MEDIUM too
and I use default value too (Criteria criteria = null;)

I use following code to know is GPS use agps or not:
Code:
public void locationUpdated (LocationProvider provider, Location location)  {
      int method = location.getLocationMethod();
      if((method & Location.MTA_ASSISTED) != 0)
      {
             // code to print "ASSISTED"
      }
      else
      {
            // code to print "NON ASSISTED"
      }
}
I test using blackberry 9000, with Option->Advanced Options->GPS with: GPS Data Source (Device GPS), GPS Services (Location ON), and Location Aiding (Enabled)

I always get "NON ASSISTED" in my app.

My question is, how to get ASSISTED as gps method ? or there is reason why it get "NON ASSISTED" instead "ASSISTED" ?

btw, I test my code using Nokia E90 and it print "ASSISTED".

Thanks for attn
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS picture

6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS

$5.89



MCR 6003L Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW  SIZE LARGE picture

MCR 6003L Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW SIZE LARGE

$13.99



Windsor Commodore Duo 20

Windsor Commodore Duo 20" Carpet extractor w/Lester Charger 25900/Battery/99hour

$2501.99



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.