Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 9
Registered: ‎04-29-2009
My Device: Not Specified
Accepted Solution

Assisted-GPS issue on Blackberry Bold

We’re developing an application for blackberry Bold and it uses Assisted-GPS.We implemented the AGPS method according to the Blackberry Developer User Guide. But it does not work as desired on the Blackberry Bold. The phone can not get the location data indoors and it costs the same time (around 1 minute) as Autonomous method to get the location date. 

In blackberry 4.6 java doc:  

public static LocationProvider getInstance(Criteria criteria) throws LocationException                                  Parameters: criteria - the criteria for provider selection or null if the default provider is requested 

 

Criteria field Default     value

Horizontal accuracy           NO_REQUIREMENT

Vertical accuracy              NO_REQUIREMENT

Power consumption              NO_REQUIREMENT

Cost allowed                     true (allowed to cost)

 

Horizontal Accuracy    Vertical Accuracy     Cost Power Consumption                           Resulting Mode 

Not Required               Not Required            Allowed Medium or No Requirement            Assist 

So our codes are:

    try {

        LocationProvider locationProvider = LocationProvider.getInstance(null);

        Location location = locationProvider.getLocation(GPS_TIMEOUT);

        ……

    } catch (Exception e) {

         // ignore

    }

How could I verify that our code is correct to use Assisted-GPS?

If not, how can we implement Assisted-GPS? 

Thanks!!

Developer
Developer
Posts: 319
Registered: ‎07-20-2008
My Device: Not Specified

Re: Assisted-GPS issue on Blackberry Bold

The Bold only supports Autonomous mode.
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Assisted-GPS issue on Blackberry Bold

Highlighted
New Developer
Posts: 22
Registered: ‎07-17-2008
My Device: Not Specified

Re: Assisted-GPS issue on Blackberry Bold

My understanding is that cell site and assisted modes are CDMA only.  The story that I heard (which is 3rd hand and I have not personally verified), is that these modes leverage functionality used in the CDMA implementation of 911 mandated location determination, whereas the GSM community uses a different scheme for 911 so those capabilities don't exist on the handset.

 

More practically, the same code works fine on my Sprint device but doesn't on my AT&T.

New Developer
Posts: 9
Registered: ‎04-29-2009
My Device: Not Specified

Re: Assisted-GPS issue on Blackberry Bold

Thanks for the help!

I had tried to use Assisted-GPS before on Blackberry Bold 9000.
The codes like:
  criteria = new Criteria();
  criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_MEDIUM);
  LogUtil.logToFile("criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_MEDIUM);");
  try {
   locationProvider = LocationProvider.getInstance(criteria);
   location = locationProvider.getLocation(GPS_TIMEOUT);
   // log location.getLocationMethod()
      ......
  } catch (Exception e) {
   // ignore
  }
I found:
  location.getLocationMethod() == 5001 ==  MTA_ASSISTED | MTE_SATELLITE | MTY_TERMINALBASED

As the Bold 9000 is not support Assisted-GPS, I think the result of location.getLocationMethod() is not correct.