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

1Pcs Dip-40 Pic16f887 Pic16f887-I/P New Ic L
$1.93
1Pcs Dip-40 Pic16f887 Pic16f887-I/P New Ic L picture100Pcs Npn Diotec 6C Or 6Ct Smd-Transistor Bc817-40 Sot-23 45V 800Ma 310 Ic S
$2.41
100Pcs Npn Diotec 6C Or 6Ct Smd-Transistor Bc817-40 Sot-23 45V 800Ma 310 Ic S picture20Pcs Bc337 Bc337-25 Transistor Pnp 45V 0.5A Ic New P
$1.13
20Pcs Bc337 Bc337-25 Transistor Pnp 45V 0.5A Ic New P picture2Pcs W27e040 W27e040-12 Eeprom 27E040 Dip-32 New Ic G
$5.4
2Pcs W27e040 W27e040-12 Eeprom 27E040 Dip-32 New Ic G picture1Pcs To-220 Mosfet N-Ch 55V 169A Irf1045 Irf1405pbf New Ic I
$1.13
1Pcs To-220 Mosfet N-Ch 55V 169A Irf1045 Irf1405pbf New Ic I picture






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