[Q] Using USB device with emulator? - Android Q&A, Help & Troubleshooting

Hi guys.
I'm in the middle of trying to create a little gadget to run on android phones using micro-USB connection. Before testing it on a real phone, i would like to use emulator on pc and the gadget connected using USB, but I can't find any guide of how to do it or if it is even possible to connect a USB device in emulator. As far as I'm aware, it should work on android 4 and up on phone, no real info for emulator. Can it be done?

up

Related

Duplicate the PC screen on the dell screen?

Is Anybody know apps or have idea how can see the pc screen by the dell streak usb cable? Thanks
Sent from my Dell Streak using XDA App
iDisplay for Android review: turn your smartphone or tablet into a 2nd or 3rd desktop display
Sound nice thanks , but I don't want to use it by server or internet, i just want to plug the usb cable or pair with pc by bluetooth, and enjoy another screen control by the regular pc mouse and keyboard .
Sent from my Dell Streak using XDA App
Go figure the USB cable was the important part of your equation
I honestly haven't the foggiest what you're trying to accomplish. But, you can always pair a Bluetooth mouse and keyboard to use with your Streak. I will often use 2x Client to connect a terminal services session this way. The USB host mode in Streak Droid lets you use the pdmi connector to mount an external USB hard drive or USB peripheral. However, in direct answer to your inquiry, no. There is no such thing as video out from PC over USB to pdmi on Streak.
...Hell, people have a hard enough time using the HDMI out on the Streak and that is a supported feature!
Maybe i need vga to usb cable. I just want to use the dell screen as a monitor to pc. Not the opposite. Could be or not? Anyboddy else have idea
Sent from my Dell Streak using XDA App
I still use
Team Wiever (now in market too).
Quick, easy, universal, 3G, no comercial FREE!!
Test this
Thanks , I tried the teamviewer its nice but its use the internet to control the pc so its little slow , moreover I want to use the regular pc mouse and the usb cable for connection.
Sent from my Dell Streak using XDA App
The review for iDisplay seem pretty scathing, are there any better alternatives?
sabret00the said:
The review for iDisplay seem pretty scathing, are there any better alternatives?
Click to expand...
Click to collapse
LOL
That's because it is crap! j/k It works about as good as VNC and the driver crashes my Win7 laptop after every time I use it. A quick uninstall / reboot/ reinstall / reboot "works". I use AirDisplay with my iPad and Win7 laptop and it works about the same. As for the best way to use a PC from your Streak, I recommend 2xClient (to connect RDP with a bluetooth keyboard and mouse!)

[Q] Using SGSII As car PC

Hi Everyone!
I am currently planning on how i could use the SGS2 as a car pc.
Right now i already have a car pc running on my car with touchscreen monitor and everything.
While using vnc to connect to my cel and display it's video signal and touch controls works,it's very slow and unpractical in most cases.
I was wondering if i could find a way to connect the tv out directly to the monitor and have touchscreen through the USB host functionality (my lcd monitor has usb for touch with general drivers)
Does anybody know if this could work or not?
My idea is to get a MHL To VGA adapter (already found) which also has a usb port where i can insert the USB of the touchscreen and it should react as a usb mouse.
I'm not entirely sure if it will need drivers or not though.
Any idea? Thanks!
Nevermind.
Sent from my GT-I9100 using XDA Premium App

Control a PC using Android without server software?

I've messed with many different apps on my Android phone that, in conjunction with a server app, allow me to control my PC with my phone. I'm curious though if there is a hardware solution that does the same thing and doesn't require any server software to be installed on the PC?
Here's my idea. A dongle that's plugged into your PC and is recognized as a generic HID device. The dongle then connects to your phone via BT. Then using an app on the phone, you can now use your phone as a keyboard, mouse, or PowerPoint controller.
This would be great for times when you don't have admin rights on the PC needing controlled and wouldn't be able to install a piece of software, but you can at least hook up a mouse or keyboard and they work. I have to do a lot of PowerPoint presentations at school and would love to just simply pop a dongle into the PC and almost immediately be able to start controlling the presentation from my phone.
Sent from my SPH-D710 using xda premium
It's a good thought, but I think it's overkill for just that purpose.
I guess the main use is to utilize your phone as keyboard input? otherwise, you could just plugin a wireless mouse to control the presentation.
I also assume that your ppt is being presented from the PC, instead of from the phone, right?
huisinro said:
It's a good thought, but I think it's overkill for just that purpose.
I guess the main use is to utilize your phone as keyboard input? otherwise, you could just plugin a wireless mouse to control the presentation.
I also assume that your ppt is being presented from the PC, instead of from the phone, right?
Click to expand...
Click to collapse
I suppose it may be overkill, sure. I was hoping to minimize what I would have to be carrying around with me. It would be handy to just have a small USB plug sized dongle only with me that I can just plug and and go and not have to have a mouse. Even a small mouse can be a bit of a bulge, and it's something that's easier to break than a small dongle.
And yes, the PPT would be running from the PC, most likely on the teachers computer that's hooked to the rooms projector.
Hmm, TeamViewer can be run without being installed. That may help. Just click on "Run" instead of "Install" on the menu.
No server software
I really don't understand why this isn't implemented already. In theory all you would need is the HID driver in an app on your phone and transmit over Bluetooth. Not sure what the complication is.
I had a feature phone that could do this in 2009, without any software installed anywhere, using standard Bluetooth and HID drivers.

Interface Question - USB OTG Webcam

Hey guys, I am connecting my normal uvc webcam to my Galaxy s5 via USB OTG, and using the app called camerafi to display the stream.
Works great. But now I'm arresting to better understand the actual connection and how data is being transfered to the phone from the webcam.
I'm sure it's not via any network protocol, but I'm really not sure what interface connection is being used. And also how to check the connection, like using adb in some way.
Any help is super appreciated!
Travis

SCRCPY - Connection Help.

i recently discovered scrcpy which imo is an excellent, and superior, alternative to vysor, teamviewer and the like (for my needs, i.e. simple remote control of android).
here's the thing tho, it works beautifully when i connect my pc and android directly using a usb type-c (android) to usb type-a (pc) cable, but it won't work when i connect an otg usb hub to the android and, from there, use a usb type-a cable to connect to my pc.
is this a well known limitation of otg hubs? or should this work? the usb type-a cable i'm using between the otg hub and pc is 2.0, do i need 3.0? or is there a special type-a otg cable i'm unfamiliar with?
i see that these is a way to use scrcpy via wifi using adb tcpip command, but i can't get it to work, and the github scrcpy thread doesn't seem to be very active.... perhaps there's a way to get it to work over ethernet as opposed to wifi? anyway, any help re the otg hub question would be greatly appreciated!
EDIT - problem solved: adb over ethernet instead of usb or wifi.
connected my android (galaxy view) to my network (ethernet) using the otg usb port and now, combined with the "adb over ethernet" app from the play store that i just discovered, the adb connection between my android and pc functions just as if they were connected by a usb cable, no more having to first connect the usb to get wifi to kick in, only to have to repeat this process again and again.
fwiw i finally got the samsung sidesync to work by installing the apk, which i thought would be a satisfactory alternative to scrcpy, and it was ok, but it's very intrusive on the pc side and the mirrored android display isn't that great, distorted, plus it has a chunky blue frame... but now i can use scrcpy, it's so lightweight, and the mirrored display is excellent, both snappy and scalable.
Can i use a type-c (android)to type-c (laptop) to use scrcpy
aeneas1 said:
i see that these is a way to use scrcpy via wifi using adb tcpip command
Click to expand...
Click to collapse
For others who find this in a search, you can get scrcpy to open up (and then kill the console to get it out of the way) on Android up to Android 11 using the "--tcpip=192.168.0.2:5555" option, but there's new capabilities in Android 12 now that eliminate totally the need for the initial USB connection.
In Android 12 you can also use scrcpy completely over Wi-Fi without first establishing the adb connection over USB like you need to do with Android 11.
There are new commands in the Android 12 Developer options to enable everything to be done over Wi-Fi which I've been using since May.

Categories

Resources