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.
Related
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.
I want to connect my phone to Android studio running on my home PC over my phone cellular network 4G internet.
I've looked up the ADB documentation and saw that remote connection can be done if both the PC and the phone are on the same network so I'm guessing a solution would be to setup some kind of VPN. I'm wondering if there isn't anything simpler that can be done? Something as simple as an app or an Android Studio add-on that handles all the connections and security considerations would be nice.
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.
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.
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.