android-camera

“Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.” -REACT-NATIVE

故事扮演 提交于 2021-02-07 13:30:21
问题 I am facing this error when I am trying to run a react-native application react-native run-android , I am unable to install the application. I am trying to build a camera application. My current react-native version:0.62.0, React-cli version : 2.0.1. Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command

“Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.” -REACT-NATIVE

不问归期 提交于 2021-02-07 13:29:10
问题 I am facing this error when I am trying to run a react-native application react-native run-android , I am unable to install the application. I am trying to build a camera application. My current react-native version:0.62.0, React-cli version : 2.0.1. Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command

setPreviewTexture failed in MTK device

泄露秘密 提交于 2021-02-07 12:52:26
问题 Recently I am learning android Camera and OpenglES by grafika (Thanks fadden).It's good on most device, but I encounter bugs in some device, espacially MTK device(such as MT6580,MT8163...). For example, when "CameraCaptureActivity" run in MTK. I am getting this error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.setPreviewTexture(android.graphics.SurfaceTexture)' on a null object reference so I changed "handleSetSurfaceTexture" function to

Android 11 (R) return empty list when querying intent for ACTION_IMAGE_CAPTURE

柔情痞子 提交于 2021-02-07 11:55:40
问题 Device: Emulator pixel 3a - Android 11 Code: final List<Intent> cameraIntents = new ArrayList<Intent>(); final Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); final List<ResolveInfo> listCam = context.getPackageManager().queryIntentActivities(captureIntent, 0); When using: targetSdkVersion 30 compileSdkVersion 30 listCam size is 0 and when changing to: compileSdkVersion 29 listCam size is 1 - as it should be. Using the following code: val captureIntent = Intent(MediaStore

How to add real time filtering effects in camera 2 API in Android

佐手、 提交于 2021-02-07 07:16:59
问题 I am developing a camera application in android, i want to enable real time filtering effects feature in to my app,I have used GPUimage filter to add filtering effects to an image.But i don't know how to enable real time filtering effects to camera preview before taking a picture.I have used camera and camera 2 api for below lollipop version and for lollipop version.Any library is available for this ?? I am a beginner,Can anyone help? 回答1: If you need simple filters like sepia or negative you

How to add real time filtering effects in camera 2 API in Android

£可爱£侵袭症+ 提交于 2021-02-07 07:14:52
问题 I am developing a camera application in android, i want to enable real time filtering effects feature in to my app,I have used GPUimage filter to add filtering effects to an image.But i don't know how to enable real time filtering effects to camera preview before taking a picture.I have used camera and camera 2 api for below lollipop version and for lollipop version.Any library is available for this ?? I am a beginner,Can anyone help? 回答1: If you need simple filters like sepia or negative you

How to add real time filtering effects in camera 2 API in Android

徘徊边缘 提交于 2021-02-07 07:13:44
问题 I am developing a camera application in android, i want to enable real time filtering effects feature in to my app,I have used GPUimage filter to add filtering effects to an image.But i don't know how to enable real time filtering effects to camera preview before taking a picture.I have used camera and camera 2 api for below lollipop version and for lollipop version.Any library is available for this ?? I am a beginner,Can anyone help? 回答1: If you need simple filters like sepia or negative you

How to add real time filtering effects in camera 2 API in Android

白昼怎懂夜的黑 提交于 2021-02-07 07:13:23
问题 I am developing a camera application in android, i want to enable real time filtering effects feature in to my app,I have used GPUimage filter to add filtering effects to an image.But i don't know how to enable real time filtering effects to camera preview before taking a picture.I have used camera and camera 2 api for below lollipop version and for lollipop version.Any library is available for this ?? I am a beginner,Can anyone help? 回答1: If you need simple filters like sepia or negative you

How rotate image when open image by Gallery?

随声附和 提交于 2021-01-29 08:31:31
问题 Capture by My Camera App and Open image by Galerry: My code open: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File(dt.FileName); intent.setDataAndType(Uri.fromFile(file), "image/*"); startActivity(intent); Capture by Standard Camera and Open image by Galerry: I check Original Image is the same. How rotate image when open image by Gallery the same Standard Camera? 回答1: Use this code to change the image orientation ExifInterface exif = new

My app crash as soon as I select a image?

你。 提交于 2021-01-28 06:46:57
问题 I am completely new to Android Studio and I have been trying to make an app that scans using the (:scanLibrary) given by this link and followed the instructions given here https://github.com/jhansireddy/AndroidScannerDemo. There is no compilation error but only some runtime error. Can someone help me figure out why this is happening? This is my code package com.mukesh.android.digiwrite; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android