×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    May 2009
    Posts
    63

    How do we send and receive string array via bluetooth in J2ME

    Hi All,

    How do we send and receive string array via bluetooth in J2ME.
    Please send me the sample code so that I will gothrough that code.



    Thanks
    Rahul

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    If you are new to J2ME, MIDlets and Bluetooth, I recommend to start with a book or tutorials rather than code examples as you will have to debug a lot on your own. There are a lot of bugs, tweaks and lessons to be learnt. Bluetooth is complicated. I do not have a good J2ME book at hand right now, however, start with the references of this one for JSR-82 (perhaps your library has its previous edition) or read at least the PDF coming with the specification. If you like to start with tutorials, continue here…

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    106

    Re: How do we send and receive string array via bluetooth in J2ME

    You don't send string arrays in j2me using bluetooth. You only can send/receive byte arrays.
    So, in your case, you will need to convert your string array to a string, convert it to byte array and, when you recieve it, you convert it back to a string, parse it and create string array.

Similar Threads

  1. Send and Receive a File with Bluetooth
    By gerardo.rossi in forum Bluetooth Technology
    Replies: 3
    Last Post: 2008-07-11, 18:28
  2. Java, bluetooth, sms, send and receive
    By Tooooooom in forum Mobile Java General
    Replies: 12
    Last Post: 2006-09-20, 11:49
  3. Bluetooth Send and Receive message mode
    By hclemson in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-03-31, 16:28
  4. send & Receive SMS thro J2ME
    By vinayakchitre in forum Mobile Java General
    Replies: 1
    Last Post: 2004-02-24, 15:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×