Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Writing a program to search blutooth devices.

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Writing a program to search blutooth devices.

    hi guys..

    Im trying to write a java program to search nearby bluetooth devices..
    Im using Bluecove-glp-2.1.0 and bluecove 2.1.0

    Im working on Ubuntu 13.04 LTS

    I typend a code to get the local Device name..


    public class BluetoothSearch {
    public static void main(String[] args) {
    LocalDevice ld= null ;
    String name = ld.getBluetoothAddress();
    System.out.print(name);
    }
    }

    this is my code..

    It returns me null. doesn't return me the local Device.

    if anyone helps it will be wonderfull.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Writing a program to search blutooth devices.

    The code is using classes that are not part of the java standard classes. Is there a forum site that supports those classes? I doubt there are many people here that have used the classes the code is using.

    Please edit your post and wrap your code with code tags:
    [code=java]
    YOUR CODE HERE
    [/code]
    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Java program to count External devices connected with the system. Eg. Pen drive
    By arindam.mukherjee007 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 29th, 2013, 08:34 AM
  2. how to pair bluetooth devices....
    By kumar.dinesh7 in forum Java SE APIs
    Replies: 0
    Last Post: March 11th, 2013, 02:39 AM
  3. Need help writing a Java program
    By goose05 in forum Loops & Control Statements
    Replies: 9
    Last Post: April 3rd, 2012, 07:00 AM
  4. [SOLVED] Search file program
    By righi in forum Java Theory & Questions
    Replies: 4
    Last Post: November 15th, 2010, 12:08 PM
  5. I need help writing this program
    By kev2000 in forum Algorithms & Recursion
    Replies: 5
    Last Post: June 4th, 2009, 03:14 AM

Tags for this Thread