Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test Bluetooth Based Application on Androidx86 on top of VirtualBox with inbuilt laptop bluetooth

How can I run Bluetooth Based application on Android emulator on my laptop. When I run the Bluetooth application, it's said, Bluetooth Device not connected. I was googled and I found a way for using Oracle VM VirtualBox. and I followed this steps too,

  1. Download Androidx86 from http://www.android-x86.org/. 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 did this and it's working fine. but the problem is, if I use Bluetooth Dongle it's working good, but I can't use my Laptop's inbuilt Bluetooth device with VM Machine. How can I connect my inbuilt Bluetooth device with VM Machine and how can I use it for Test Bluetooth Based Application.? Kindly suggest some ideas. thanks in Advance..

like image 855
praba Avatar asked Aug 27 '12 01:08

praba


People also ask

How do I use bluetooth on my Android phone x86?

settings -> USB -> Alt+Ins, this popped up "Unknown Device 0A12:0001[0134]", I clicked on it, I could see the device selected under USB device Filters. clicke on OK. Select the guest OS i.e., Ubuntu 10.04, click on start. fiddled with the USB dongle (insert - remove - insert bluetooth dongle).

Does Android x86 support bluetooth?

Out of the box android-x86 is working with all usb bluetooth, you don't need to change anything at all.

Can you use bluetooth in virtualbox?

Go to VM > Settings. Select USB Controller, then select Share Bluetooth devices with the virtual machine.

How do I use bluetooth on Android emulator?

You can't. The emulator does not support Bluetooth, as mentioned in the SDK's docs and several other places. Android emulator does not have bluetooth capabilities". You can only use real devices.


1 Answers

In the Virtual Box :

  1. right click and go to settings

  2. select Serial Ports and Enable it

  3. click Ok.

  4. Now click Start

  5. Select Devices from Top Menu

  6. Select USB Devices

  7. Select your Bluetooth Adapter that's all. now You can use your Laptop Bluetooth for VM.

like image 92
Rathakrishnan Avatar answered Sep 19 '22 14:09

Rathakrishnan