mac osx webcam for avd of nexus 7 - eclipse

Below is a screenshot of my AVD. But right now it does not use the camera on my laptop. So I changed Front camera from Simulated to Webcam0; except, after that when I run an app the AVD Emulator does not show up at all. After I edit back to Emulated, the emulator shows up.
Is it possible to use my laptop's camera with the emulator? My computer is osx mountain lion.

Related

Debug Flutter app on Android device while simultaneously showing its screen on desktop with scrcpy

Working in Ubuntu, I'm debugging a Flutter app on my Android phone while I code it. So far that works fine, but I would like to see the phone screen on my pc for comfort. I know an emulator would do the trick, but for performance issues I used my phone instead.
So far I installed scrcpy, and managed to show the phone screen on the pc via WiFi debugging. The problem comes when I try to run both connections at the same time. If I have the WiFi scrcpy connection on, it disconects right when VS Code connects with the device via USB. And viceversa, if the USB debugging is on, attempting to start scrcpy kills the Flutter debug.

Why Android Studio Emulator cannot use my laptop webcam?

Android Studio 3.0.1
Windows 10
Java v9.0
Please excuse my level of a-maturity. But, I cannot use laptop webcam as front or back camera in Emulator, although, I set it in AVD Manager, Virtual Device Config setting. In API level 23, I have camera App, when I open it in the Emulator, it says, "cannot connect to camera". On API level 26 and 27, there is no camera app.
Also, I am sure, my Webcam is defined and active in Windows 10, device Manager.
I would be really thankful, if any body can help me in this regard.
Also, here is the [log][1] file when I open camera app in Emulator.
There are some similar questions about Emulator Camera in here, I tried them but I got no result.
When I start Emulator, my camera LED indicator start to flash in the beginning. But it turns off after a few seconds.
[1]: https://pastebin.com/jZyenaU0
[1]: https://i.stack.imgur.com/behFz.png
[2]: https://i.stack.imgur.com/MNgEQ.png
[3]: https://i.stack.imgur.com/1S4QG.png

Unity remote 4 and 5 Not working on Oppo Mirror 5, Samsung Galaxy S7Edge?

I have installed unity remote 4 and 5. When I run my editor Both of it not working with my device. The device doesn't show anything.
Iam using Unity 5.35f1. I have do :
Edit-> project Setting-> Device (Any Device Andorid)
I have end task Adb in start manager.
But still not working.
What should I do ?
Thanks
Dennis
Yes as it say in comment, the solution for me is make sure your usb driver android phone is detect by the computer. Then make sure again run unity remote first before run Unity.

Can I use Unity remote with a Android emulator instead of Android phone?

Unity Remote is good app. It allows to connect with Unity while you are running your project in Play mode from the editor.
But what if I want to test game but I don't have an Android phone? Yes, it happens ¯\_(ツ)_/¯
I have a great Android emulator: Nox APP Player
The emulator doesn't have USB, so it just show me standsrt text Connect device with a USB cable ..... bla bla bla ...Game in the Unity Editor is running...emulator doesn't display the game.
Can I somehow connect this emulator to unity using Unity Remote? Or using something else? How?
Not sure if you still need the solution for this problem, but I think I should leave an solution for those who come later.
You can connect Nox with Unity via UnityRemote (I'm using Unity Remote 5) with the adb of Nox. Here the steps :
Rename your adb.exe to other (i.e adb_origin.exe). It's normally located at SDK folder\platform-tools
Go to Nox installation folder\bin, looking for nox_adb.exe, copy it to the location of your origin adb.exe
Rename nox_adb.exe to adb.exe
Open cmd and enter : adb.exe connect localhost:62001 and you will see "already connected to localhost:62001". If not, you can try replace localhost by 127.0.0.1
Then apply steps 3 → 7 of #Alexey
At the Resolution dropdown, you can choose Normal (default is Downsize) to have better image quality on Nox
Note that after all of this, you should restore the origin adb.exe for later use.
Here is my result picture :
Hope this will be useful.
Took from https://gamedev.stackexchange.com/a/126192/81175
I was able to run Unity Remote 4 on standard Android emulator.
Final effect looks something like
Whole procedure:
Install Unity and open some Unity tutorial project (2D Roguelike tutorial in my case)
Install JDK, Android SDK and setup Android emulator using AVD Manager.
My emulator config looks like this:
Important note: CPU/ABI option seems to be one of most important ones(Intel x86 emulator didn't work for me)
Then install Unity Remote 4 from apk file to emulator using command: adb.exe install path/to/apk (Windows) or adb install path/to/apk (Linux/Mac).
Then in Edit → Preferences → External Tools — set paths to Android SDK and JDK
In Edit → Project Settings → Editor in section Unity Remote select: Any Android Device.
In File → Build Settings — add Your scenes and switch platform to Android.
Press PLAY in Unity while Android Emulator is running and Unity Remote 4 app is opened.
Tip: At first I needed to restart unity after all changes, because it wasn't starting game on emulator. Now it runs everytime.
However, it works for AVD Manager emulators. I've tried them too, before I asked the question, and they didn't work because of CPU/ABI Intel x86 as #Axxxon said...now it works with CPU - ARM armeabi...
Unfortunately NOX APP PLayer doesn't connect. Maybe it because it's not have CPU/ABI settings. Or I just don't get how to launch this player with Unity.
It is said. Because NOX APP has touch simulating, screen shaking and other good stuff for checking game. AVD emulators doesn't have these things :'-( therefore they are useless for me.
But maybe this answer will help to someone.

Problem connecting real Android device to Eclipse

I just got a new computer and am trying to set up my developing environment but I'm having trouble getting eclipse to connect with my phone. I have a HTC Aria android device and I was able to use it with eclipse on my old Windows XP computer. On my new Windows 7 64bit computer though, its not working.
When I run my program, I see my HTC device in the device chooser, however, its state is "offline" and it randomly disappears then reappears. I can select it, but I cannot push "OK" to run on the device. I've tried reinstalling my driver and updating it through HTC's website, but nothing has changed.
Any ideas?
I ended up reinstalling my OS, installing Eclipse Indigo 64bit, and then installing my phone driver. Works perfectly now. Have no idea what was wrong before