BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-18-2008, 04:33 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down How to stop the gps data ....

Please Login to Remove!

Hi,

i get the gps interval at every 1 here is the code

_locationProvider.setLocationListener(xll, 60, 1, 1);


for some time i have to stop the GPS data....... how to stop the gps data ..through the code..


Thanks,
praveen..
Offline  
Old 07-18-2008, 06:44 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

_locationProvider.setLocationListener(null,-1,-1,-1);
Offline  
Old 07-18-2008, 07:12 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

how i am stopping the previous interval...
Offline  
Old 07-18-2008, 09:37 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

Well it is a bit complex. There can be multiple listeners to the GPS, each with its own interval etc. For example a user could run Google Maps and Blackberry Maps at the same time. Each would establish a LocationListener. When a listener no longer wants to receive location data there are two options:

Code:
_locationProvider.setLocationListener(null,-1,-1,-1); //registration of any previously set listener is cancelled
_locationProvider.setLocationListener(_listener, 0, -1, -1); //the application wants to receive only provider status updates and not location updates at all.
This is of course all documented in the API documentation.
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

10Pcs To-92 J310 Transistor Fairchild/On/Mot Ic New T
$3.14
10Pcs To-92 J310 Transistor Fairchild/On/Mot Ic New T picture100Pcs Tp4056 Sop-8 Tp Chip Battery Charging New Ic I
$8.2
100Pcs Tp4056 Sop-8 Tp Chip Battery Charging New Ic I picture10Pcs Programable Timer Cd4536be Cmos Dip-16 Ic New A
$4.02
10Pcs Programable Timer Cd4536be Cmos Dip-16 Ic New A picture10Pcs Field Effect S8 Transistor 2955 Ndt2955 Sot-223 Ic New A
$3.73
10Pcs Field Effect S8 Transistor 2955 Ndt2955 Sot-223 Ic New A picture5Pcs 74Hc541 Hc541 74Hc541d Sop-20 Ic New J
$1.44
5Pcs 74Hc541 Hc541 74Hc541d Sop-20 Ic New J picture






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