How to run camera dependent program on android Emulator - java

I made a few programs in which I need to capture pictures using notebook Camera and send it through email. THe problem is neither can I send an email nor I can capture pictures using camera through emulator. I have gone through some suggested solutions like "tomgibara" but like most of the people it is not working for me in case of camera. And I havent found any solution of sending email thorugh emulaotr cuz there is not option. I don't have android device to run these programs on that. Is there any way to solve this problem.

On my emulator, you can't use Camera or send mail, you'll either have to test it on the phone, tablet or something with android (Not emulator). with debug mode on, or just presume it works...

Related

Not receiving SMS inputs using native code (Java) in Flutter. (in the background)

I have a serious problem with SMS input in Flutter.
I want to make an application that will display a notification with a special sound as soon as a new SMS arrives with a specific number.
I did this in Flutter with the Telephony package and everything works fine on the emulator but not on a real device.
I did a lot of research regarding the problem of this package and tried different methods, but none of them solved the problem.
I tried to solve this problem with the native-code (java) method and tried many methods in this regard, but the problem was not solved. Even using this method, it does not work on the emulator.
Thank you very much for your help 🙏❤️
Emulator Android Version: 12
Sources that I tried to fix the problem:
https://javapapers.com/android/android-receive-sms-tutorial/
Receiving SMS on Android App
https://www.javarticles.com/2015/04/android-receiving-sms-example.html
...

FRONT_CAMERA not supported d error: Video Chat Feature powered by Applozic

I have the following issue (since about a week) and unfortunately I have not been able to resolve it:
I'm using applozic especially as a video chat feature for my app. I want to deploy it on an android 6.0 powered smart glasses devices. The app starts, connects to the applozic server, all functions from my app work well and then, when I try to connect a WebRTC video call, this is what happens:
01-31 11:02:41.331 3580-3580/com.package.name W/System.err:
java.lang.IllegalArgumentException: FRONT_CAMERA is not supported on
this device [...]
Audio works, the chat feature works, so I "believe" the error message that is thrown. Is there anything I can do from my side to fix this issue, or is applozic simply not supporting devices that only have one camera?
I already tried the following:
Uninstalled and reinstalled the camera app
Installed a different android camera app
Added all additional manifest permissions I could think of
Logged into the web app (Java Script API) with the device and it works
Tested it with 5 different smart phones and it worked well, which made me
believe applozic does not support devices that only have 1 camera.
Compiled + Targeted a higher and a lower SDK
After contacting applozic (they responded very fast what I appreciated), I was presented with a workaround approach by inserting a modified audioVideo module. After tweaking this module a little bit, I'm now able to use a device that either only has a front, or back camera when doing a live video call.
So I suggest that if you run into the same issue, you contact applozic support: https://www.applozic.com/ and refer to this stackoverflow thread.

Accessing android phone Camera thru USB from my java openCV application in real time

I'm trying to learn computer vision with OpenCV and i need camera to work with but the only camera that i have is on my android phone.
So im thinking about connecting it to my pc (via USB) and using it with my application. Is anything like that possible? Can i take information from camera connected via usb in real time?
I have no experience with something like this. I know i can just record video ,save it,put it on my pc, and use it as resource -bud i would prefer to have real time streaming of video while my application will work in background on my desktop computer.
Will i have to code some android application to get this working?Or can i simple ask for that data from my desktop application?
If you only want to experiment and learn to use OpenCV, you can get an IP Camera app for your phone and then read the image stream from your computer (here's an example of how to do that). That is the easiest "real time-ish" solution I can think of.
I found a simple way to use the a web cam (IP Webcam installed on my smartphone through Play Store) as camera using OpenCV and Java. Here is how: just copy the IP Webcam web link inside the Video Capture. Like this.
org.opencv.videoio.VideoCapture webSource = new VideoCapture("http://192.168.43.1:8080/video");
The smartphone and the laptop should be inside the same Wi-Fi.

Trouble running android wear app on emulator

I cannot seem to run this application which is supposedly ready to go to run on the Android Wear emulator.
Appreciate if someone can help me as to why this app does not actually get deployed to Watch emulator. I can see that the unaligned APK gets generated though.
I am following this guide:
http://toastdroid.com/2014/07/18/developing-watchfaces-for-android-wear/
Code is available at:
https://github.com/twotoasters/watchface-template
To install watchface you need to generate signed APK and push it to phone that is connected to that emulator, and install it there. After 1-2 minutes watchface should appear on the Wear device - if doesn't sync apps by companion app.
Also make sure that package for phone contains 'wear' part.
The key here is that you're using the emulator. If you run WatchfaceActivity.java from the Wear module on the emulator, you will see the watch appear on screen, but as an activity that can be dismissed.
If you then try to select it as the default watch face, you will be met with a black screen. I have only seen the emulator display the custom watch face (as a watch face, not a running activity) once and it seemed to have been a fluke.
The best way to develop custom watch faces is to run them as stand alone activities until it appears to be done, then go through the trouble of exporting a signed APK and run it on a real device connected to a real watch. At that point you can fix any small issues that remain.
please run you application on phone which has 4.3 or above platform.
install Android wear launcher apk on phone .
then connect wear emulator and phone using adb command.
adb -d forward tcp:5601 tcp:5601

Android Processing programming will not run application on device. How do I fix this?

I'm currently working with Processing, and I would like to code an android app. I have succeeded in being able to launch may application in the android emulator, but I am not able to get it to launch on my Galaxy 2.0 tab. I click run device, but every time I do I get a message at the end that says "waiting for device to become available". I'm thinking that I may need to point Processing to my android tablet somehow. Any ideas as to what I'm doing wrong. I'm on Windows 7.
It means your device is not being detected in the eclipse debugger tool. Did you check in Tab "Developer Options", make sure USB debugging is enabled. please refer other links you may get answer.
Click here
Device not detected in Eclipse when connected with USB cable

Categories

Resources