Header Sep
Symbian Tips, Tricks & Code
My Rating Score
Login to rate page
 
May 2004
Bluetooth code samples from members

[Back]

In April, we invited Sony Ericsson Developer World members to send us Bluetooth tips and code samples.

We would like to thank all contributors and congratulate the winner of the drawing for a Bluetooth Car. Rosso Alessandro from Italy submitted and shared a simple money manager importing/exporting data from/to Microsoft Money.

All contributions are provided "AS IS" and are described below.

  • Dump utility (J2ME) app: The utility is like tcpdump and makes it possible for a P900 phone to listen to any service records in the neighborhood and connect to receive data. The data is displayed on the screen using hexadecimals.

  • Simple money manager (J2ME) app: The solution uses a J2ME program on the P900 phone and a Win32 client for import/export of data from/to Microsoft Money (2003 tested). Before connecting the PC and the phone, insert 2 or 3 records on your phone. First use the "BlueConnect" function on the phone, then place the Win32 client in "wait mode". Any operation on Win32 is also executed on the phone and vice-versa.

  • BlueChat (J2ME) app changes: Suggest code changes to the BlueChat app published at http://www.benhui.net/.

  • Receiving message (J2ME) tip: When you are connected to a Bluetooth device and waiting for a message from it, you can use RecvOneOrMore method to receive the message. But it will wait for the message forever. You can use the timer for stop the waiting after a specified time.  

  • Bluetooth Chat (J2ME) app: A simple Bluetooth Chat program.

Download Bluetooth code samples (175kB)>>
Download the Win32 part of Money Manager (2MB)>>


 

 

 

 

My Rating Score
Login to rate page