You have chosen to sponsor your bid up to a maximum amount of .
The code for this project must run on a mobile phone, using J2ME. It should use CLDC 1.0 and MIDP 2.0
I need a Java class written, with two functions.
The first function should return an array containing information about bluetooth devices that can be connected to. I need the bluetooth ID and bluetooth friendly name of each device.
The second function will send a file via bluetooth obex. There will be 3 parameters: the bluetooth ID of the target, the file name and the file contents. The file will just be a text file. An exception should be thrown if there is an error while sending.
A small demo application that I can use to test the functionality of the code is required also. There must be clean separation of code between the demo app and the bluetooth class that you build.
I must be able to compile the code using the Sun Java WireLess Toolkit.
Apart from the demo app, no other user interface is necessary.
Only classes that are part of JSR 82 can be used, such as javax.bluetooth.* and javax.obex.*