Re: Bluetooth API in JavaME
Tijl Houtbeckers <[email protected]> Mon, 21 Jul 2008 16:38:48 +0200
| Newsgroups | gmane.comp.java.sun.kvm |
|---|---|
| Message-ID | <[email protected]> |
The WTK only gives you a "fake" enviroment to test it as far as I
know. You can use MicroEmulator in combination with BlueCove (if your
bluetooth hardware is compatible) to do real word testing, from your
desktop computer. You should be aware though that (escp under windows)
bluetooth drivers only implement a subset of the features found in
JSR-82. Also there are a lot of bugs in these drivers (same for the
phones). Not a 100% garantue for success..
regards,
Tijl Houtbeckers
The Netherlands
> I'm not been able to find any bluetooth devices using the JavaME's
> bluetooth API. See code sample below:
>
> public class ListDevices extends MIDLet implments DiscoveryListener{
> . . .
>
> public void searchAvailableDevices(){
> device = LocalDevice().getLocalDevice();
> agent = device.getDiscoveryAgent();
> agent.startInquiry(DiscoveryAgent.GIAC,this);
> }
> public void deviceDiscovered(RemoteDevice rDevice, DeviceClass cod){
> System.out.println(rDevice.getFriendlyName(true));
> //search services code
> }
> }
>
> I'm running this code on Netbeans IDE 6.1 running Sun java wireless
> tookit 2.5.2 for CLDC emulator platform. I have a mobile phone which
> is bluetooth enabled.
>
> Any clues?
>
> Cheers,
>
> A
> [Message sent by forum member 'alpha_manic' (alpha_manic)]
>
> http://forums.java.net/jive/thread.jspa?messageID=288056
>
> =
> =
> =
> =
> =
> ======================================================================
> To unsubscribe, send email to [email protected] and include in
> the body
> of the message "signoff KVM-INTEREST". For general help, send email
> to
> [email protected] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".