Results 1 to 2 of 2
  1. #1
    yash2009 is offline Member
    Join Date
    Jul 2009
    Rep Power

    Thumbs up Bluetooth connection not working on US Nokia phones from J2ME Midlet (MIDP 2.0)

    Hi All,

    We are developing a J2ME midlet (MIDP 2.0 ,CLDC 1.1)which makes bluetooth connection to other devices.The bluetooth

    connection is working perfectly on indian nokia phones with Airtel as carrier.But when we deploy the same midlet on Nokia E71 US phone with carrier as AT&T ,the bluetooth connection is not working.The sample code is as follows:

    public void run(){

    StreamConnection connection = (StreamConnection);

    // open an input stream to get some data

    InputStream in = connection.openInputStream();

    byte[] serialData;
    readData = true;
    while(readData == true){
    int lengthavai=0;
    lengthavai = in.available();

    if(lengthavai > 0){

    serialData = new byte[lengthavai];
    int length =;

    System.out.println("data read: " + new String(serialData));

    dataViewForm.append(new String(serialData));


    }catch(IOException ioe){

    when we try to connect on US Phones, the execution hangs at the following line of code:
    StreamConnection connection = (StreamConnection);

    No exception is caught.

    Our midlet is not signed.

    In the Forums it is said that the problem is with the unsigned midlet.AS some of the US carriers block the secure API usage on Unsigned midlet.

    But our question is, if we buy a code signing certificate from Verisign or Thawte and sign the midlet, will this problem be solved.

    Any other alternative solutions for this ???

    Immediate help will be appreciated.


  2. #2
    Join Date
    Aug 2009
    Rep Power



    For that, also you have same problem, you need to sing ur application.

Similar Threads

  1. Replies: 0
    Last Post: 06-02-2009, 08:17 AM
  2. On-Device Debugging for nokia devices using J2ME.
    By srikant_ in forum CLDC and MIDP
    Replies: 0
    Last Post: 05-27-2009, 11:03 AM
  3. Replies: 0
    Last Post: 05-27-2008, 08:54 AM
  4. J2ME MIDlet snippet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-21-2007, 12:41 PM

Tags for this Thread

Posting Permissions

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