BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-08-2010, 10:15 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2010
Model: 9500
PIN: N/A
Carrier: employee
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Find wether the device has Gps capability or not ?

Please Login to Remove!

Is there any api to find wether the device has Gps capability or not ?Is there any way to find?
Offline  
Old 09-08-2010, 10:45 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

The BlackBerry smartphone models and their corresp... - BlackBerry Support Community Forums
Offline  
Old 09-10-2010, 12:26 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2010
Model: 9500
PIN: N/A
Carrier: employee
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks.But i want to find out using java Application

Last edited by Dubdub : 09-10-2010 at 06:45 AM. Reason: Deleting the "attitude"
Offline  
Old 09-10-2010, 06:45 AM   #4 (permalink)
Appleinator
 
Dubdub's Avatar
 
Join Date: Nov 2005
Location: New Hampshire
Model: App6+
OS: AJBR549
PIN: Ask
Carrier: ATT & Verizon
Posts: 20,036
Post Thanks: 52
Thanked 777 Times in 737 Posts
Default

Calm down and lose the attitude please.

And please do not double post. Only one post is needed. Your second thread has been closed.

How to Find wether the device has Gps capability or not ?
__________________
-->>BB FAQ

-->>Stinsonddog's Tip Site!

-->>Twitter


If someone helps, tell them by clicking the Thanks button.!!
Offline  
Old 09-10-2010, 07:34 AM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

I'm not sure there is a reliable way to determine if the device has GPS using LocationProvider. Even devices that do not support GPS *do* support an external Bluetooth GPS puck.

In my experience, I just attempt to get a location provider using the required criteria, and report any errors to the user.
Offline  
Old 09-13-2010, 12:01 PM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
Smiley8's Avatar
 
Join Date: May 2008
Location: Calgary, AB
Model: Torch
Carrier: Fido
Posts: 226
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bahik.jagan View Post
Is there any api to find wether the device has Gps capability or not ?Is there any way to find?
try this



Code:
        try {
            LocationProvider _locationProvider = LocationProvider.getInstance(null);
            
            if ( _locationProvider == null ) {
                UiApplication.getUiApplication().invokeLater(new Runnable() {
                    public void run() {
                        Dialog.alert("Your device does not support GPS!");
                        System.exit(0);
                    }
                });


            } else {
             // do your stuff here

            }
        } catch (LocationException le) {
        }
__________________
Visit our website www.toysoft.ca for Cool BlackBerry Apps.

Follow us @ http://twitter.com/toysoft
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

HP Agilent VXI E1401A Mainframe w/ E4208C,E4206A,E1609A,E1618A,E4209B,E1697A
$499.0
HP Agilent VXI E1401A Mainframe w/ E4208C,E4206A,E1609A,E1618A,E4209B,E1697A pictureCisco OSR-1 SHELF-L-ELH 15-Slot Modular Mainframe Chassis w/Plug-In Modules
$1499.99
Cisco OSR-1 SHELF-L-ELH 15-Slot Modular Mainframe Chassis w/Plug-In Modules pictureHP Agilent 70004A Display Mainframe (No Plug-Ins)
$195.0
HP Agilent 70004A Display Mainframe (No Plug-Ins) pictureAgilent E8408A VXI Mainframe W/ E8491B 89606A E1438A E1438A
$700.0
Agilent E8408A VXI Mainframe W/ E8491B 89606A E1438A E1438A pictureHP 8555A RF Section Spectrum Analyzer Mainframe & 85528 IF Module 141T Display
$750.0
HP 8555A RF Section Spectrum Analyzer Mainframe & 85528 IF Module 141T Display picture






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