Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
sanskith
Posts: 7
Registered: ‎04-15-2010
My Device: 9530
Accepted Solution

MAC Addres for BlackBerry Emulator

Hi,

 

I am developing an application in J2ME, It involves sending MAC address to server.

 

I am using below code to get the MAC Address of BlackBerry emulator 4.7

 

I am running MDS service to connect to server

 

 javax.bluetooth.LocalDevice localDevice;

 

 localDevice = LocalDevice.getLocalDevice();
String   macAddress= localDevice.getBluetoothAddress();

 

but it is giving  null value.

 

Please help me on this.

 

Thanks in advance

Please use plain text.
Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: MAC Address for BlackBerry Emulator

The Simulator does not simulate a Bluetooth device.  If you want to do Bluetooth processing, then you need to buy a board that works in your desktop, or use a real device.  I suggest you try your code on a real device. 

Please use plain text.