BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 04-02-2009, 08:59 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Bluetooth Connection between two 7290

Please Login to Remove!

Hello,
I want to create a Connection between two Blackberries 7290 with the OS 4.1
I found something with BluetoothSerialPort, but if I pair the 2 Devices und start the App i don't get any BluetoothSerialPortInfos with the Static method of the class BluetoothSerialPort.
I tried to create a BluetoothSerialPort without an Info but that doesn't run. I get an IOException at writing.

PHP Code:
    public boolean keyChar(char keyint statusint time)
    {
                if (
key == Characters.ENTER)
        {
            try
            {
                
_port = new BluetoothSerialPort("Hi there"BluetoothSerialPort.BAUD_115200
                    
BluetoothSerialPort.DATA_FORMAT_PARITY_NONE BluetoothSerialPort.DATA_FORMAT_STOP_BITS_1
                    
BluetoothSerialPort.DATA_FORMAT_DATA_BITS_8BluetoothSerialPort.FLOW_CONTROL_NONE
                    
10241024this);
                
String h "hi";
                
_port.write(h.getBytes());
            }
            catch(
Exception e){Dialog.alert(e.toString());}
                
        }
    } 
At this point i get the Exception at the writing.
Can someone Help me please?

Martin
__________________
if you can answer in german, please answer in german
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

CLAROSTAT 381-N-10K POTENTIOMETER *NEW IN BOX*
$5.0
CLAROSTAT 381-N-10K POTENTIOMETER *NEW IN BOX* pictureBANNER LEDRR70XD4-PM VISION LIGHT 70MM RING WITH POTENTIOMETER FNIP
$425.0
BANNER LEDRR70XD4-PM VISION LIGHT 70MM RING WITH POTENTIOMETER FNIP picturePair - TDK CP-2511 10k Mono High Quality High End Potentiometer / Fader i
$10.0
Pair - TDK CP-2511 10k Mono High Quality High End Potentiometer / Fader i pictureVISHAY MOD 536 POTENTIOMETER *NEW IN FACTORY BAG*
$25.0
VISHAY MOD 536 POTENTIOMETER *NEW IN  FACTORY BAG* picture1ab 20-Qty LOT ALLEN-BRADLEY 1-MEG RECT CERMET SEALED Potentiometer Variable
$0.99
1ab  20-Qty LOT ALLEN-BRADLEY 1-MEG RECT CERMET SEALED  Potentiometer Variable picture






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