BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-18-2008, 04:33 AM   #1
praveens
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
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
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

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

how i am stopping the previous interval...
Offline  
Old 07-18-2008, 09:37 PM   #4
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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



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


CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$17.98



10PCS For SST27SF512-70-3C-PG SST 27SF512 DIP-28 Eeproms Programmable Flash Chip picture

10PCS For SST27SF512-70-3C-PG SST 27SF512 DIP-28 Eeproms Programmable Flash Chip

$27.69



5PCS EEPROM IC ATMEL DIP-28 AT28C256 AT28C256-15PU US picture

5PCS EEPROM IC ATMEL DIP-28 AT28C256 AT28C256-15PU US

$27.99



10* DIP-28 Eeproms Programmable Flash Chip For SST27SF512-70-3C-PG SST 27SF512 picture

10* DIP-28 Eeproms Programmable Flash Chip For SST27SF512-70-3C-PG SST 27SF512

$28.31



10PCS DIP-28 Eeproms Programmable Flash Chip For SST27SF512-70-3C-PG SST 27SF512 picture

10PCS DIP-28 Eeproms Programmable Flash Chip For SST27SF512-70-3C-PG SST 27SF512

$27.89







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