Hi All,

I finish basic bt program, i tried by Nokia Emulation && N70 handset, but i start open bt connect(localDevice.setDiscoverable(DiscoveryAgent.GIAC)) on the moment my program "hung"(deep freeze). below is my code, hope evey one can help me.

Code:
try{
  System.out.println("Error 0");
  localDevice= LocalDevice.getLocalDevice();
  System.out.println("Error 1");
  discoveryAgent=localDevice.getDiscoveryAgent();
  System.out.println("Error 2");
  if(!localDevice.setDiscoverable(DiscoveryAgent.GIAC)){  <<==== Stop in here. Because no display "Error 3" message 
      return;
  }
System.out.println("Error 3");
  String connURL = "btspp://localhost:" +MYSERVICEUUID_UUID.toString()+ ";"+"name="+myServiceName;
         scn = (StreamConnectionNotifier)Connector.open(connURL);
         isBtReady=true;
       }catch(Exception e){
          System.out.println("Start Server Error: "+e);
       }