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

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

MAC Addres for BlackBerry Emulator



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

Posts: 19,636
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.