views:

543

answers:

2

Any API in blackberry to make a call and send data. I want to dial a number and send some data using GSM data(not GPRS). any help or pointers would be appreciated.

A: 

You can send and receive data by SMS:

BlackBerry KB - What Is - Different ways to send SMS messages
BlackBerry KB - What Is - Different ways to listen for SMS messages
BlackBerry KB - How To - Use SMS to notify an application

If you want, you can hook call and send SMS automatically:
BlackBerry KB - How To - Implement the PhoneListener interface

Max Gontar
Actually, I don't want to send as SMS as my data size is quite high(around 32K). Also this has to be not sent in single packet, but series of handshakes and parts of data.
in other words can I use the Blackberry as a GSM modem from an application running on the blackberry itself. I know it's possible to use the blackberry as a GSM modem from a PC.
+1  A: 

you can use a StreamConnection

String url = "socket://" + host + ":" + port
                                        + (checked ? "":";deviceside=true");
StreamConnection connection =  (StreamConnection) Connector.open(url,
                                        Connector.READ_WRITE, true);

deviceside=false indicates that the blackberry will connect to the Internet with a proxy in your MDS

deviceside=true open a direct TCP connection

Dani Cricco