Skip to main content

Bluetooth support on Android Emulator

I have been playing around with Android lately, and one thing that annoyed me is the emulator does not support Bluetooth (as opposed to J2ME emulator, which does).
So if you do not have an actual Android device (like me), and you want to do Bluetooth/WiFi programming, you run in to a problem.

Fortunately, there is a way out - Install the Android image on a VM and use your own Bluetooth device. This is what I did:
  1. Download Androidx86 from This is an .iso file, so you'd need something like VMWare or VirtualBox to run it. Me, I use VirtualBox.
  2. When creating the virtual machine, you need to set the type of guest OS as Linux instead of Other.
  3. After creating the virtual machine, set the network adapter to 'Bridged'.
  4. Start the VM and select 'Live CD VESA' at boot.
  5. Now you need to find out the ip of this VM. Go to terminal in VM (use Alt+F1 & Alt+F7 to toggle) and use the netcfg command to find this.
  6. Now you need open a command prompt and go to your android install folder (on host). This is usually C:\Program Files\Android\android-sdk\platform-tools>.
  7. Type adb connect IP_ADDRESS
  8. There done! Now you need to add Bluetooth. Plug in your USB Bluetooth dongle.
  9. In VirtualBox screen, go to Devices>USB devices. Select your dongle.
  10. Done! now your Android VM has Bluetooth. Try powering on Bluetooth and discovering/paring with other devices.
  11. Now all that remains is to go to Eclipse, and run your program. The Android AVD manager should show the VM as a device on the list.

I found these links helpful. Perhaps you would too:

Happy coding!


  1. i followed the steps and evrything proceeded as mentioned but when i tried to lanch my program from eclipse, the mounted emulator in virtual box wasn't showing in the list of virtual devices, can you explain y??

  2. hmm did you try typing 'adb devices' in the command prompt to see if the android x86 shows up in the list?

  3. when i use "adb devices" in cmnd prmpt it's displaying nadroid x86's ip in d list of devices attatchd but i cn't see it when i try from avd mannager in eclipse. so i m unable to test my apps through the mounted emulator :-(

  4. it's working now, thnx for ur post :-)

  5. Thanks a lot ! It really helped me.
    I had some issues with the dongle and had to remove/insert it alteast once before it worked as suggested at:

  6. @dashing & venkat:
    Glad it was useful guys :)

  7. @ dashing.amitjha: Please tell me how you make your device working.
    I'm in the same problem.

  8. I installed Android x86 on VirtualBox. There is Bluetooth in my laptop and it works fine, but I cannot turn on Bluetooth in my VM. Is there some specific things to do for laptops?

  9. i tried adb devices.but the device is not shown in the list.plz help me.

  10. @Senthil, are you using the virtual device? or an actual device?

    I havent tried it on my laptop - but I understand that sometimes this method may not work on all systems. What's your OS?

  11. i tried both virtual box and vmware i am getting connected to ip address as
    connected to
    and when i use adb devices it's coming as
    List of devices attached.
    emulator-5554 device device.
    But i can't see that device in avd manager.I am using pc with bluetooth external dongle.plz hep me.

  12. oh dear...thats strange. its the same problem dashing.amitjha seems to have had. Perhaps contact him and ask?

  13. I don't know any details of her.Can you send me plz.

  14. @senthil
    I dont either, but you can go to his blogger profile, see his real name and try to find his contact details.

  15. or if his real name is not there, google his blogger name?

  16. I found him and sent a friend request to him.Thanks for your suggestion.If you got any solution for this means please help me.

  17. For SENTHIL:

    "adb connect IP_ADDRESS"

    IP_ADDRESS != = localhost

    IP_ADDRESS should be something like your "local ip" :

  18. internet is not enabled in the virtual box inspite of setting network adapters. wat cud b d pbm?

  19. Hi friends for me both bluetooth and internet are working.

  20. I can't see the virtual machine in AVD manager. Could you help me?

  21. I can't see the VM in AVD manager. Could you help me?

  22. You can tell me clearly more about step 8. I don't understand

  23. You can tell me clearly more about step 8. I don't understand

    1. If you dont have built in Bluetooth, you need to add a bluetooth dongle to your PC. Usually, if you're using a Laptop, you dont need to do this step. But for most PCs, you would need to add an external Bluetooth dongle.
      Hope you got it now :)

    2. Thank you very much.
      When I use my Laptop, I only create one Virtual Machine which has Bluetooth. Is there a way I could test application between two VMs?

  24. Hi Roshini, I am too working on Bluetooth support on Android emulator. I wanted to discuss this with you. Can you write to me at

  25. I am too working on Bluetooth support on Android Emulator. I wanted to discuss this with you. Can you write to me at

  26. we attach usb bluetooth dongle to VM.
    so we do not deal with bluetooth protocl
    only deal with usb.

  27. can paired each divices.But not connected.
    authentication is ok,But i can not send files
    please help me

  28. i can't want to send file to emulator?

  29. Why netcfg show only this line : lo UP

  30. hello there! with bluetooth enabled in the android emulator, do you think it would it be possible to enable a laptop to send/receive messages and make calls by pairing to devices such as Gmate and SocBlue? thanks!

  31. Hi,
    how can I disable ssp mode in Android emulator. Any clue?
    I tried hciconfig command to disable but as it's only a bluez lib inside so I cant change the config. Any other clue?


  32. Hi All,

    Could anyone help me , how can I disable sspmode in Android emulator.
    I tried with hciconfig command, but it failed as it has the bluez built lib only. So cant change the config.
    Is there any other way to disable ssp.


  33. I blog often and I truly appreciate your content.
    The article has really peaked my interest. I am
    going to book mark your blog and keep checking for new information
    about once per week. I subscribed to your RSS feed as well.

    Feel free to visit my web blog - great article

  34. heyy can you tell which android x86 .iso file did you use.
    i mean i want my emulator to run atleast ICS.

  35. i everebody,
    i have a problem.i use a usb dongle cc2540(bluetooth low energy) and have then to connect to my PC over VM.but it is not work.i can not see another device, e.g my keyfob (keyfob cc2540 texa instruments).i have do all step by step (Bluetooth support on Android Emulator ).please help me

  36. We're a group of volunteers and opening a new scheme in our
    community. Your site offered us with valuable info to work on.
    You have done an impressive job and our entire community will be grateful to you.

    my blog post;

  37. I seriously love your blog.. Great colors &
    theme. Did you develop this site yourself? Please reply back as I'm looking to create
    my own personal blog and want to learn where you
    got this from or exactly what the theme is called. Kudos!

    Also visit my web page :: Throne Rush Cheats


Post a Comment

Popular posts from this blog

පර්යේෂණ සහ ආචාර ධර්ම අවසරය

පසුගිය සති කීපයකම නිරත වෙලා හිටිය වැඩක ප්‍රතිපල ඊයේ ලැබුණා. ඒ මගේ පර්යේෂණය සඳහා ඕනෑ උන 'ආචාර ධර්ම අවසරය' නැත්නම් ethics clearence එක ලැබීමයි. මගේ පර්යේෂණය මුලික වශයෙන් පරිගණක විද්‍යාව සහ මෘදුකාංග ඉංජිනේරු විෂයන් වලින් කෙරුනත්, මිනිසුන් ද සහභාගී කරවාගෙන කෙරෙන කොටසක් ඇති නිසා තමා මෙහෙම අවසරයක් ගන්ඩ උනේ. ටිකක් පැහැදිලි කරොත්, මේ පර්යේෂණයේ ප්‍රථිපලයක් වන මෘදුකාංග පද්ධතිය නිවැරදිව වැඩ කරනවාද නැද්ද කියන එක තහවුරු කරන්න එක විද්‍යාගාරයක කරලා බලල මදි (සහ කරන්න අමාරුයි). 'හැබෑ ලෝකයේ' එය වැඩ කරන හැටි බලන්ඩ ඕනේ. මගේ පර්යේෂණය 'ස්මාර්ට් තාක්ෂනය' නැත්නම්, කෘතිම බුද්ධිය සහිත ගෘහස්ත පද්ධතියක් (smart home) සම්බන්ධයෙන්. වෙනත් මෘදුකාංග වලට වඩා මේ වගේ පද්ධතියක් හදන කොට ගොඩක්ම සැලකිලිමත් වෙන්න ඕනේ මිනිස්සු මෙහෙම තාක්ෂනෙකට කොහොම ප්‍රතිචාර දක්වයිද කියලා.  හිතන්න, ඔයාලගේ ගෙදරත් කෘතිම බුද්ධියක් නැත්නම් 'ස්මාර්ට්' පද්ධතියක් හයි කරලා කියලා. මේ වගේ පද්ධති වල අරමුණ මිනිසුන්ගේ ජීවිතය පහසු කරන එක. උදාහරණයකට ඔන්න ඔයාගේ 'බුද්ධිමත් ගෙදර' ලව්වා ඔයාට පුළුවන් වෙලාවට ලයිට් දාන

ක්ෂීර ජීවියාගේ විත්ති - ඇරඹුම

මේ දිනවල බ්ලොග් ලියන්නට කියවන්නට මේකේ අයිතිකාරයාට වගතුවක් නැත. මුළු ගෙදරම තියෙන්නේ අලුත සම්ප්‍රප්පාප්ත වූ ක්ෂීර ජීවියාගේ අණසක යටතේය. ඔහුට ඕනෑ විදිහට නටන්නට මේකේ අයිතිකාරයාට විතරක් නොව ගෙදරට පය තබන හැමෝන්ටම සිදුවන්නේය. නමින් ක්ෂීර ජීවියා උනත් කිරි බීමට ඔහු ඉතා අලසය. සැබවින්ම කිරි බීම හැරෙන්නට අනික් සියලු දේ සඳහා ඔහුට මනා උනන්දුවක් ඇත. කිරි බොන අතරේ සිනාසීම, කතා කිරීම, අවට සද්ද බද්ද ගැන විපරම් කිරීම, හතර වටේ කරකැවීම ආදී බොහෝ රාජකාරි ඔහුට ඇත. එළියට එන්නට පෙර ඇතුළේ හිඳිද්දීත් ක්ෂීර ජීවියා වැඩ කලේ ඔහුට ඕනෑ විදියටම පමණක් විය. ඒ නිසා සාමාන්‍ය ක්ෂීර ජීවින් ගේ හැසිරීම අනුව ලියවුනු පත පොත අනුව හැසිරෙන්නට ඔහුට කිසි උවමනාවක් නොවීය. එළියට එන්නට නියමිත දින ලංවෙද්දි ඔහුට ඔලුව පහළට දමාගෙන එක විදිහකට හිටියේ නැත. විටෙක හරහටත්, විටෙක උඩටත් එහෙට මෙහෙට හැරීම ඔහුගේ සිරිත විය. නර්ස් නැන්දලා විසින් ඔහු උපත ලද පසු ජිම්නාස්ටික් ක්‍රීඩකයෙකු වනු ඇතැයි අනාවැකි ද කීවෝය.  අන්තිමේදී ඩොක්ටර් මාමා විසින් ක්ෂීර ජීවියාව අල්ලා බලෙන් ඔලුව පහළට හරවන ලද්දේ මේ විපරියාස බලන් ඉන්නට බැරි තැනය!  ක්ෂීර ජීවියා වැඩ කරන්නේ ඔහු