8 Replies - 6110 Views - Last Post: 15 July 2011 - 02:39 PM

#1 MBT7  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 08-April 11

How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 03:39 AM

Haw can I connect my mobile to PC by bluetooth . I'm Writing a client_server application that I need to connect mobile to PC.
Is This A Good Question/Topic? 0
  • +

Replies To: How to connect mobile to pc by bluetooth in java?

#2 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2860
  • View blog
  • Posts: 10,964
  • Joined: 15-July 08

Re: How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 03:52 AM

Moved to Mobile Development. I think that you will find that this tutorial is very comprehensive:
http://today.java.ne.../bluetooth.html
Was This Post Helpful? 2
  • +
  • -

#3 MBT7  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 08-April 11

Re: How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 04:24 AM

I work with netbeans and I think it need javax.bluetoth.*
where can i find this package?
Was This Post Helpful? 0
  • +
  • -

#4 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2860
  • View blog
  • Posts: 10,964
  • Joined: 15-July 08

Re: How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 04:40 AM

It comes standard with the JavaME distribution. Make sure you have that downloaded and installed.
Was This Post Helpful? 1
  • +
  • -

#5 MBT7  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 08-April 11

Re: How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 05:06 AM

My netbeans version is 6.7.1
maybe it doesn't have some libraries for javaME. how can i update it?(without downloading new version! :D)
Was This Post Helpful? 0
  • +
  • -

#6 MBT7  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 08-April 11

Re: How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 01:11 PM

I fixed that error and here i need a sample code for connecting to pc by mobile. I searched all day long and I found nothing!!! :(
Was This Post Helpful? 0
  • +
  • -

#7 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10188
  • View blog
  • Posts: 37,632
  • Joined: 27-December 08

Re: How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 01:31 PM

You should check out the Oracle tutorial on Bluetooth with Java ME.
Was This Post Helpful? 2
  • +
  • -

#8 MBT7  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 08-April 11

Re: How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 02:30 PM

dear macosxnerd101,
i think it is too brief too write a program in mobile side and pc side.
it just defined some methods and its application. it is good for who write at least one program in bluetooth mode.
i'm so glad if you can help me more!
Was This Post Helpful? 0
  • +
  • -

#9 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10188
  • View blog
  • Posts: 37,632
  • Joined: 27-December 08

Re: How to connect mobile to pc by bluetooth in java?

Posted 15 July 2011 - 02:39 PM

Both tutorials show you how to write code for connecting to bluetooth devices from the mobile device using the Java ME platform. You cannot use Java ME for desktop applications, though you can use Java SE. Java SE does not have a built-in bluetooth library, so you will have to download a third-party API.

You have some good resources- put a little effort into this.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1