Creation obex connection without service discovery

Posted by Vio on Stack Overflow See other posts from Stack Overflow or by Vio
Published on 2010-05-29T10:35:43Z Indexed on 2010/05/29 10:42 UTC
Read the original article Hit count: 170

Filed under:
|
|

Hello there my problem is this,i want to create an obex connection but i already know my server adress.The problem is how to get the connection url without service discovery.I use a normal java project for my server side and a midlet project for my client side.I will post the code maybe it helps. Server connection

    UUID uuid=new UUID("8841",true);
    String      url="btgoep://localhost:"+uuid+";name=FTP;authenticate=false;master=false;encrypt=false";
   SessionNotifier sn=(SessionNotifier)Connector.open(url);
   System.out.println("Now waiting for a client to connect");
   sn.acceptAndOpen(this);
   System.out.println("A client is now connected"); 

When i try to connect with the client it doesn't get to the last line :(....any ideas why?Hope u can help...thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about bluetooth