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
Rammy
Posts: 16
Registered: ‎12-22-2009
My Device: 8900
My Carrier: VodaFone India

GPS query question..

 

Will i get Location Exception after 120 secs if dont get GPS location  :

 

 

try{
Criteria c = new Criteria();
c.setPreferredResponseTime(120000);
LocationProvider lp = LocationProvider.getInstance(c);
}catch(LocationException e){
..
}

 

And instead of using 

 

setPreferredResponseTime(120000);

if i use

 

lp.getLocation(120);

 

 

 will then also i will get LocationException after 120 secs.

 

Thanx..

Regards

Rammy

Please use plain text.
New Developer
Rammy
Posts: 16
Registered: ‎12-22-2009
My Device: 8900
My Carrier: VodaFone India

Re: GPS query question..

Anyone??

Please use plain text.
Developer
ibarrera
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: GPS query question..

I used it and I got an LocationException.

Please use plain text.
New Developer
Rammy
Posts: 16
Registered: ‎12-22-2009
My Device: 8900
My Carrier: VodaFone India

Re: GPS query question..

hi

 

 
Please use plain text.
Developer
peter_strange
Posts: 19,595
Registered: ‎07-14-2008
My Device: Not Specified

Re: GPS query question..

If you find that the action you see on the device does not match the JavaDocs, then you can shout at RIM.  I suspect in this case, that the API documentation is accurate. 

Please use plain text.
New Developer
Rammy
Posts: 16
Registered: ‎12-22-2009
My Device: 8900
My Carrier: VodaFone India

Re: GPS query question..

means getLocation(120) method must throw LocationException after 120 secs if it does not get any location.. Right??

Please use plain text.
Developer
ibarrera
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: GPS query question..

I used getLocation.

Please use plain text.
New Developer
Rammy
Posts: 16
Registered: ‎12-22-2009
My Device: 8900
My Carrier: VodaFone India

Re: GPS query question..

Thanx a lot..ibarrera..

Please use plain text.
New Developer
oreyraj
Posts: 32
Registered: ‎10-07-2008
My Device: Not Specified

Re: GPS query question..

Is this solved?

Please use plain text.