BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-07-2009, 10:52 PM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Model: 8110
PIN: N/A
Carrier: Vodafone
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Simulating bluetooth GPS in blackberry 8100 simulator

Please Login to Remove!

Hi all,



I am developing a blackberry application for reading GPS data from a bluetooth GPS device.I am using jde 4.2 (bb 8100 simulator) for developing.how can I simulate bluetooth GPS in my simulator. I have added new GPS location and checked 'Bluetooth GPS receiver in range' in 'simulate' menu in the simulator.But I cant detect or retreive GPS data. I am adding my code for detecting bluetooth devices.



if (BluetoothSerialPort.isSupported()) {
// Get the BluetoothSerialPortInfo. This will be an array of all
// Bluetooth
// devices that have been paired with the BlackBerry.
portInfo = BluetoothSerialPort.getSerialPortInfo();
int numDevices = portInfo.length;

for (int count = numDevices - 1; count > 0; --count) {
String deviceName = portInfo[count].getDeviceName();
if (deviceName.equals("DATALOGG")) {
application.callScreen.add(new LabelField("data logg found"));
btConnectionURL = portInfo[count].toString();
COMMReader commReader = new COMMReader(); //thread for reading serial data from the device
commReader.start();
return;
}
}

showFailureMessage("device not found");
} else {
showFailureMessage("bt not supported");
}



But BluetoothSerialPort.isSupported() always returns false.Should I need to make any changes in code or configuration.Since this method is signed category, I cant test it in actual device now.



Please help me to solve this. It is an urgent. Thanks in advance.
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

DEC / AMI 304E 21-15542-01 vintage ceramic IC *NEW* UIC p/n 40278101
$79.0
DEC / AMI 304E 21-15542-01 vintage ceramic IC *NEW* UIC p/n 40278101  pictureHSS 15PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$197.0
HSS 15PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureHSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP
$165.0
HSS 12PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR, BIKES,JEEP pictureVINTAGE DEC Digital Letterwriter 100 LA 100-BA Dot Matrix Letterprinter TESTED
$189.99
VINTAGE DEC Digital Letterwriter 100 LA 100-BA Dot Matrix Letterprinter TESTED pictureVINTAGE LUNKENHEIMER No 2 SENTINEL HIT MISS ENGINE BRASS OILER PAT DEC. 19, 1899
$39.99
VINTAGE LUNKENHEIMER No 2 SENTINEL HIT MISS ENGINE BRASS OILER PAT DEC. 19, 1899 picture






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