"Xamarin Android Player" Can't connect to the camera - android

First, let me say I'm not currently a Xamarin Developer. I'm needing to test apps using Xamarin Android Player. Some of these apps need to be able to access EITHER the camera on my OSX 1011.5 box, OR some dummy camera that's fools the app (I dont need real pictures).
Currently, when I try to use an app that requires the camera I get a "Can't connect to the camera". I can't find anywhere how to convince the Virtual Device where the camera is.
I did see This question but it's not helpful since 'Tools' or 'Google Emulator Manager' are nowhere that I can find.
ALTERNATIVELY...a suggestion for any OTHER emulator where I can change the hosts and/or name resolution DNS so I can point a website to a test IP.
NOTE: I tried Genymotion and it hard crashes my OSX on as soon as I start a virtual device. It USED to work, but now it doesn't and I don't know why.

Related

Android Studio AVD Emulator Chrome and Play Store missing

I am making my first developer steps on Android.
Trying my first test app on an Android Virtual Device (AVD), I noticed that the device has almost no software on it, there is no Play Store and no Chrome Browser. See Screenshot. I checked all settings up and down but found no way to tweak the basic OS software load. I tried several phone models and API levels, but had no luck.
How can I create a device providing software support similar to a physical device, I do specifically need an Internet browser.
Google Play System Images
When creating the emulator, you need to select and create a system image that contains the playstore.

Android App installation on phone for testing : Suggestions

I am trying my hands on the android app development and need your suggestions to mitigate my current situation.
My organization has disabled USB for the desktop and I wouldn't be able to connect my phone through USB to test my application as I code.
I have installed genymotion but since it is behind proxy, in all the ways I could configure it, it gives proxy authentication error.
The avd is comparitively slower and the app which am trying needs internet connectivity at every step. I have tried these too and my impression is that we can make
the avd work for connecting to internet through its webbrowser but it cannot connect to internet within the apps. I might be wrong here. Please let me know if it is not the case.
Is there any other way where we can install the app in the phone as and when we code to test it..?
One option can be to export an apk file everytime and install them on the phone by sending this apk through a mail. But this will be a cumbersome activity if we have to test as and when we code.
Any suggestions on this..?
PS: I do not want to hack the desktop to enable the USB.Also using an external laptop with USB enabled is out of option in my case.
Many thanks.
Another way is using AirDroïd. You just need to install it on your test device, and you can manage it with a webapp :
your.static.ip.xx:8888
You can install your app with that way, it's really easy, you don't need any account in a local network.
For testing... no idea without usb, or without the emulator. Maybe you can log everything in a text file & get it (with airdroid for example).
EDIT
I think if you create an account you can use it external of you network.
http://web.airdroid.com/
Just create an account, & log on web & on the app, you could use it on the external way.
Why are you even bothering to use the desktop PC when your organization has made it unsuitable for development.
It will be hard work, but you could do all your development on the Android device itself, using AIDE
(Actually AIDE is pretty practical as a IDE if you have a large screen tablet, and pair it with a full size bluetooth keyboard).
Quote: "Inside your project bin folder there is an apk file. If you copy that file to a device you can then install the app from it.
When I am in your situation I throw my apk into dropbox and send out links for people to download it."
from this link
I doubt that if your company has disabled USB they still allow Bluetooth, but because you did not state it specifically:
If you can use Bluetooth, the best way would be to use it for running and debugging your App.
There are some Tutorials on the web.
For Example: http://zcourts.com/2013/07/19/android-debugging-over-bluetooth-without-root/

For Android Virtual Devices, How to Use Computer Camera?

I'm new to android apps development. I'm trying to use the camera of my computer to catch a picture in Android Emulator. I've checked out Tom's method, but it is written in the former syntax. It has a lot of errors while I'm trying to compile them. Is there anyone have a better way?
When I run the emulator with my laptop, a message pops up asking me if I want to attach the computer web cam to the emulator. I select "Yes" and it works fine.
Make sure you didn't select any "no-camera" settings in the AVD creation, and that your camera has the right drivers and whatever it needs to operate.

Use Desktop webcam on Android AVD

i'm developing an android app that needs to capture a camera picture,
is there any way to configure my AVD to use my conputer webcam on the emulator?
when i open the default camera app it shows me an squareanymation, can i use/configure the emulator/avd to use my computer webcam?
I really can't think of a way to do this.
I would do the following:
During development, when debugging on an actual Device under adb, use the camera as normal. While debugging on an AVD, comment out your camera code and us a pre-taken a png to your app that resembles/emulates the photo the camera would have taken. This would let you work on the picture analysis regardless of the camera, and finish your app without an actual ADB device, just AVDs. One you get ahold of a real device you can finish up.
On another note, if you are ready to go poking around in VMs, Android Kernels, and HALS, you could follow this article (http://bytecruft.blogspot.com/2011/05/alternative-to-android-emulator-and.html) which tells you how to setup Android X86 under VMWare or Virtualbox as an ADB Device. I'm sure setting up the host machine's webcam as a camera would be much easier that bay (VMWare device bridging comes pretty close).
Hope I helped.

while the apk runs without problems on emulator when installed on Motorola milestone picture and icon doesn't shown as they were on emulator

my problem : the app I have uploaded into my cellular device is shown without the pictures I have insert to it .
steps I have done in order to install:
I have inserted the xxx.apk file into the device via usb
I downloaded an apps installer via the Market
I opened the app using the installer and instead of picture an white background appeared
when I opened the xxx.apk file using file system I found the pictures.
note: even an application icon weren't appearing.
Apparently the res libary having problem to be bined to application.
I might ness to add something to my appliction manifest?
I might need to change something on my device ? (I already made a change and enabled user's not Market application )
I would be very grateful for some life saving answer I need to show my work in a few days in this is the first time i tested her on a real devise.
I also tried an example as shown in hello android book the same example worked perfectly on the emulator where on my android device (Motorola milestone ) the picture and icon weren't shown
Please tell me what I might be doing wrong guys I need to apply my project back at uni(I was the only one in uni who did it on android and in my country most of pep don't even know what android is so getting help outside of forum's like this is not an option ) so please please help me .
I don't know what app installer you downloaded from the Market, but you shouldn't need it. You should be installing the app to your phone using the same SDK tools you used to install it to the emulator. Ie, using Eclipse or the commandline "adb install" commmand.
I'm assuming you used the SDK tools to install the app to the emulators? In which case, start there. Start with looking at what you're doing different between when you installed unsuccessfully to your phone and when you installed to successfully to the SDK.
In my experiences so far, there should be very few differences between working with the emulator and working with the phone.
Well, something is wrong, but what is hard to tell from your question. What pictures are you talking about? Your drawable resources? My guess would be that your application works in the emulator (you have tested it?), but that it doesn't on the phone you're testing with. Have you checked the logcat output?
If you're developing from Eclipse, why not try a debugging session using the phone rather than the emulator?
Hard to narrow down without more details, but a few notes:
Pontus has a point - what's your logcat output? You can use logcat on a real device. Maybe not yours unless it's rooted, but with many phones you can.
Do you link the drawable to your app in the manifest file?
How do you test on emulator vs. device? Do you right-click the app and choose "Run As -> Android Application"? Do you do that for both emulator and device?
When you run on the device, do you first sign it? If so, can you verify the jar/apk and see the contents? Is the drawable under res/drawable?

Categories

Resources