Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME + Bluetooth?

 
Sara Jahan
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was reading up some info on the Symbian web site that states that J2ME does not support bluetooth applications. Is it true or was I reading some obsolete stuff? It seems Bluetooth functionality can only be added using C++.
/Sara
[ June 13, 2003: Message edited by: Sara Jahan ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is JSR-82, which is in final release, but I am not aware of any phone models / development tools that support Bluetooth + Java. The existence of the JSR however does give some hope...
 
Sara Jahan
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After much R&D, I got some specific info in another forum. I am doing a copy and paste here. I hope this is not illegal?
/Sara
---------------------------------------------
Gianni,
1. You can use Personal Java, but not J2ME. However, the problem is that
you also need to create JNI code that will allow your Personal Java apps
to call the native C++ libraries on the P800.
2. In order to the C++ Bluetooth libraries on Symbian devices, then
check out the book by Mike Jipping:
http://www.amazon.com/exec/obidos/tg/detail/-/0470844302
Bruce
http://www.javabluetooth.com
Gianni Pedrozzini wrote:
> I have a P800 and I'm developing an accademic project. I want that the
> PDA and my PC comunicate using bluetooth... but I need an help.
>
> 1st) I know that on P800 there's sybian 7.0 and the first OS on which
> JSR-82 is implemented is sybian 7.0s...so I cannot pratically use
> java. Doesn't it?
> Can I use c++ ?
>
> 2nd) Which is the software I need to program? Can the Roccoco
> development toolkit copile also the c++ code? Is there a different
> toolkit?
>
> Thanks of all
> Marco
[ June 16, 2003: Message edited by: Sara Jahan ]
 
David Price
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
To use Bluetooth from MIDP, you must use the optional package "Java APIs for Bluetooth" (JSR-82). However, I'm not aware of any phones for sale today that actually implement this optional package (there are many phones with both MIDP and Bluetooth, but no way to use Bluetooth from MIDP).
Nokia just announced its first MIDP 2.0 phone (Nokia 6600) and this will support JSR-82, so it looks like Bluetooth MIDP support will become more common in the future.
David
 
Sara Jahan
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In case, any body is intersted in this, I found two articles on the same subject:
Developing Bluetooth Applications in Java: Part 1
http://www.commsdesign.com/design_corner/OEG20030611S0026
<http://www.commsdesign.com/design_corner/OEG20030611S0026>
Developing Bluetooth Applications in Java: Part 2
http://www.commsdesign.com/design_corner/OEG20030612S0017
<http://www.commsdesign.com/design_corner/OEG20030612S0017>
/Sara
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic