Pairing Real Android Phone with Emulator Through Bluetooth - android

I have an android application which depends on Bluetooth. Now I need two devices for using this but I only have one physical android device. Is there any way in which I can use my device and my PC emulator as terminals while the PC emulator uses the PC's bluetooth adapter?
Thanks.

No you cannot. Simple answer, but emulator does not support bluetooth. I develop bluetooth accessories for Android and have been waiting for BT access from the emulator but for now, the simple answer is NO.

Related

Getting mobile IMEI using Arduino

I have an Arduino device connected through USB to the Android smartphone.
Is it possible to get the mobile's IMEI without routing it using my Arduino board?
By default I hope not, or else it would be a security issue.
The Android device controls what information is shared with the attached device.
You can probably create an Android app that will detect a plugged Arduino device in a special way and share that information (write it to USB from the app). In this case you have to install and run this app first on the mobile phone.
If you don't have an app, you can probably pretend that Arduino is a "debugger device" (like a PC with a debugging driver), and then the Android OS will ask if you trust it or not, and then can issue debugger commands from Arduino. That's much more complicated, because such drivers differ between manufacturers.

Emulate bluetooth/wifi connection on AVDs

I am looking for testing how my app sends files via wifi-direct and(or) bluetooth. Is there a way I could emulate a connection between a PC and the emulator and send files? Or is it possible to emulate this between 2 AVDs?
You can't.
The emulator does not support Bluetooth. Just can`t.

can we use Bluetooth dongle both on Host (xp) and Guest android OS at a time

I wanted to implement communication between c# server and android application through bluetooth. I don't have real android device so I am using android emulator in Virtualbox.
I have activated bluetooth in android emulator but unable to share bluetooth between both xp and VM android. My pc does not have bluetooth internal hardware. I am using Bluetooth Dongle. How can I share same bluetooth device both on xp and VM android?
I wanted to establish communication between c# server running on host xp and VM android emulator by using same bluetooth dongle. is it possible to discover and connect android emulator from host xp using same bluetooth dongle?
Sorry If I ask anything silly or or my way of questioning is not right. I don;t have much knowledge about all this stuff.
Thanks everyone for help!
I think what you want to do is not possible (I also wanted to do it but couldn't make it work).
What would be interesting, is if it's possible to connect 2 separate BT dongles to a single computer and get them to pair.

Arduino and Android based PC

I have plans to integrate an arduino board (not broght) with a Android 4.0 based PC (1GB RAM, 1,5Ghz Proc, HDMI, wi-fi). Is possible to use this android pc to control the arduino board and act as controller? So i can use the power of android to automate my home.
Here is the android that i have: AK802 Mini Android 4.0 Network Media Player w/ Wi-Fi / HDMI / TF / USB - Black (4GB / 1GB DDR III)
Yes, it is possible. You can use ADK with Android devices that can act as an USB host, starting from Android 2.3.4
For more information you can check the official guide.
There are two ways to talk beetwen Arduino and Android: Android Debug Bridge (ADB) MicroBridge mode and Android Open Accessory Protocol (only for devices with Android version > 2.3.4).
For MicroBridge mode see this work example: USB data transfer between Android and Arduino
The AK802/MK802 Android 4.0 media players have USB host, so there shouldn't be a need for ADK/Microbridge/IOIO. Try plugging it in and checking for /dev/ttyACM0 or /dev/ttyUSB0. You'll still need a way to read/write to this device from your Android app for which you will probably need some native code.
Alternatively, if you don't care about the Android UI, you can simply install a generic Linux such as Ubuntu. From there, everything should be pretty much the same as on a normal PC.
Finally, you can think about a wireless link over Bluetooth. Android supports Bluetooth out of the box, and USB dongles are only a few dollars these days, and an Arduino shield should be about $18.

developing a special device communication app that connects through USB port on Android

I found the USB docs for Android and from there it seems as if one could write a communication program on an Android phone that works exactly like on a PC.
I have a normal USB-cable that normally connects between a PC and an external device. On one end it is a normal USB on the other end it has a special plug for the device.
If I get an USB female-female adapter I could connect my normal Android phone cable USB end to my device USB cable and so basically plug in my special USB cable into the Android phone.
Does anyone have experience doing USB communcation programming on Android - basically copying normal PC USB functionality? All I would have to do is sent and receive text strings over the USB port - just like on a PC.
Is this possible or is the USB port programming on Android limited in any way
and not really identical to USB programming on a PC? eg. power supply through USB or anything else?
ps on the PC I need to have a FTDI driver installed to work with the external device.
Many thanks
UPDATE:
it seems that starting with Android 3.1 it is possible to do this - however, if I understand htis correctly, Android 3.1 runs only on tablet Android devices - I might be wrong with this - compared to Apple this all this pretty confusing (however, with Apple iPhone it will never work! ;)
Yes, Android supports USB host on 3.1 and newer, so you can connect USB devices directly to an Android device using a converter cable. Android 4.0 brings this feature to handset devices.

Categories

Resources