Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7427949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:40:02+00:00 2026-05-29T08:40:02+00:00

Hi all I have created server and client using blackberry java programming ,but i

  • 0

Hi all I have created server and client using blackberry java programming ,but i am not able to create connection between client server ,
Server code is this

 public void run(){


//    m_strUrl= "btspp://localhost:" + RFCOMM_UUID + ";name=rfcommtest;authorize=true"; 
m_strUrl= "btspp://localhost;name=rfcommtest;authorize=true"; 

Dialog.alert(m_strUrl);

  // m_StrmConn = BTFACADE.waitForClient(SERVICE_NBR);

try
{
      localDevice = LocalDevice.getLocalDevice();
      localDevice.setDiscoverable(DiscoveryAgent.GIAC);
      //String connectionURL ="btspp://localhost:393a84ee7cd111d89527000bdb544cb1;authenticate=false;encrypt=false;name=RFCOMM Server";
      String connectionURL =m_ServerUrl;
      System.out.println("Server is started on"+m_ServerUrl);     
      streamConectionNotifier = (StreamConnectionNotifier)Connector.open(connectionURL);


      System.out.println("Server is statred on:"+m_strUrl);
      Dialog.alert("Server is statred on:"+m_strUrl);

      streamCon = streamConectionNotifier.acceptAndOpen(); 
      System.out.println("Connection is created");

      outputStream = streamCon.openOutputStream();
       inputStream = streamCon.openInputStream();
       String message="Hello this is server";
       byte data[]=message.getBytes();
       outputStream.write(data);
       System.out.println("Data is send to client");
}
catch (BluetoothStateException e)
{        
    Dialog.alert(e+"");

     System.err.println( "BluetoothStateException: " + e.getMessage() );    
} 
catch (IOException ex)
{
 Dialog.alert(ex+"");

       ex.printStackTrace();
}
catch(Exception e)
{
  System.err.println( "Exception: " + e.getMessage() );    
    Dialog.alert(e+"");

}

}

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:40:02+00:00Added an answer on May 29, 2026 at 8:40 am

    The Sun Developer Network article “Using the Java APIs for Bluetooth, Part 2 – Putting the Core APIs to Work” describes creating and using Bluetooth server and client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have already created my own VOIP server and client using pure sockets. All
I have created a QDialog based app using Qt Creator and all is well
I have created an application using Adobe Flex. I took all the files from
I need to create server and client programs with synapse using UDP protocol. I
I have a trivial secure socket server-client program. For the server certificates, I created
I have created a separate project to connect my server component to clients using
I have created a Server app that receives sound from client, i then broadcast
I have made an client - server example using netty. I have defined handlers
I have created a bunch of movie clips which all have similar names and
I have created an application in facebook,all is working fine except the publish to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.