android-camera

How to add a sticker in live android camera application? [closed]

萝らか妹 提交于 2020-03-03 12:18:11
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 10 days ago . I want to make simple sticker camera application. In Camera screen there will be a sticker and when the user press capture button it will capture the image with the sticker. Actually there will be two layers. One for camera picture and other for sticker. 回答1: I have made a similar

Detect when another app tries to use the camera

好久不见. 提交于 2020-03-01 05:55:51
问题 Our app runs as a background service, continuously getting the images from the frontal camera and then doing things with the images. However, when the user tries to open another app that uses the camera, two things happen: either the new app crashes and ours continues, or our crashes and the new one gets access to the camera. Now, if our app loses control over the camera, there's an exception that we can catch, and we can then start trying to access it until we get access and things go back

Detect when another app tries to use the camera

こ雲淡風輕ζ 提交于 2020-03-01 05:55:09
问题 Our app runs as a background service, continuously getting the images from the frontal camera and then doing things with the images. However, when the user tries to open another app that uses the camera, two things happen: either the new app crashes and ours continues, or our crashes and the new one gets access to the camera. Now, if our app loses control over the camera, there's an exception that we can catch, and we can then start trying to access it until we get access and things go back

Android 10 (api 29) camera2 api regression with wide-angle camera

僤鯓⒐⒋嵵緔 提交于 2020-02-27 12:58:46
问题 I'm using camera2 api in my camera app designed specifically for Google Pixel 3 XL. This device has two front facing cameras (wide-angle and normal). Thanks to multi-camera feature, I can access both physical camera devices simultaneously, and my app has a feature to toggle between those two cameras. Up until my recent upgrade to Android 10, I could accurately see two distinct results, but now my wide-angle capture frame has pretty much the same FOV (Field of View) as the normal camera one.

Android 10 (api 29) camera2 api regression with wide-angle camera

若如初见. 提交于 2020-02-27 12:58:39
问题 I'm using camera2 api in my camera app designed specifically for Google Pixel 3 XL. This device has two front facing cameras (wide-angle and normal). Thanks to multi-camera feature, I can access both physical camera devices simultaneously, and my app has a feature to toggle between those two cameras. Up until my recent upgrade to Android 10, I could accurately see two distinct results, but now my wide-angle capture frame has pretty much the same FOV (Field of View) as the normal camera one.

Android phonegap app : unable to retrieve an image taken by the camera using my own code (not phonegap's)

醉酒当歌 提交于 2020-02-07 03:20:26
问题 Note- even though im using phonegap, the question is not about some issue in that. Hi, im developing a android app. my app is using phonegap 1.3. mi problem... Im using phonegap apis to take a picture and display it in my app. But whats happening is due to some reason the os kills my app after the camera is launched, so that after the photo is clicked, my app is relaunched and it doesnt get the info abt the taken picture. As a workaround to this problem (the problem), i designed a phonegap

Android portrait camera reliability

旧城冷巷雨未停 提交于 2020-02-01 02:50:07
问题 I'm developing an app targeted SDK 8 with min SDK 7 that uses a camera view. Obviously there is this issue of rotating the Camera for portrait that has had a fair amount of discussion already. I currently have the following fix that separates SDK 7 and 8+: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.FROYO){ theCamera.setDisplayOrientation(90); } else { parameters.set("orientation", "portrait"); parameters.set("rotation",90); } Which works on both a 2.1update1 device

Android portrait camera reliability

浪子不回头ぞ 提交于 2020-02-01 02:50:05
问题 I'm developing an app targeted SDK 8 with min SDK 7 that uses a camera view. Obviously there is this issue of rotating the Camera for portrait that has had a fair amount of discussion already. I currently have the following fix that separates SDK 7 and 8+: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.FROYO){ theCamera.setDisplayOrientation(90); } else { parameters.set("orientation", "portrait"); parameters.set("rotation",90); } Which works on both a 2.1update1 device

Flutter camera appears stretched

青春壹個敷衍的年華 提交于 2020-01-28 05:55:28
问题 I've been playing around with flutter an i'm loving it so far, but I'm having an issue getting the camera working. I follow the directions on this page https://pub.dartlang.org/packages/camera and it works. However, the camera is stretched so that it fits the phone screen, but the image is warped and taller than it should be. Other apps which use the camera seem to keep it in proportion, is there a way to ensure that it doesn't get stretched but still fills the screen? 回答1: Building upon the

doesn't show picture in android 6 and above

强颜欢笑 提交于 2020-01-27 08:47:25
问题 I am trying to learn how to use the camera in an app and this is what I reached , the idea is having a button that opens the camera and that the picture will instantly show on the screen after we take the picture, the second button is from an earlier version that couldn't show the picture immediately and had to be clicked in order to show it. Anyways my problem is that this code doesn't show the picture at android 6.. on my android 5 device it works fine.. the picture is saved in the "sdcard