android-camera-intent

Camera intent permissions in Android 10

╄→尐↘猪︶ㄣ 提交于 2021-02-09 10:41:44
问题 I am having an unusual issue when dealing with using the camera app with an implicit intent in Android 10. I am using the Big Nerd Ranch Android Programming textbook (4th Edition) chapter 16 to learn how to take pictures and store them in an app. The book walks through the process of setting up a FileProvider, granting the camera app permission to write to a specific URI, and then launching the default camera app using an implicit intent from MediaStore. After following the instructions in

Camera intent permissions in Android 10

≯℡__Kan透↙ 提交于 2021-02-09 10:39:20
问题 I am having an unusual issue when dealing with using the camera app with an implicit intent in Android 10. I am using the Big Nerd Ranch Android Programming textbook (4th Edition) chapter 16 to learn how to take pictures and store them in an app. The book walks through the process of setting up a FileProvider, granting the camera app permission to write to a specific URI, and then launching the default camera app using an implicit intent from MediaStore. After following the instructions in

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

Parent Activity is recreating after calling Camera intent in Android Oreo

半世苍凉 提交于 2021-02-05 10:51:48
问题 I am using Media intent capturing image. Once process completed result will be send back to parent. Above mentioned process working properly up to Nougat Os but in Oreo the parent activity is recreating again. How can i solve this issue. 回答1: Above mentioned process working properly up to Nougat Os but in Oreo the parent activity is recreating again Your process is being terminated while the camera app is in the foreground. This is perfectly normal and has nothing to do with Android 8.0. It

Parent Activity is recreating after calling Camera intent in Android Oreo

允我心安 提交于 2021-02-05 10:51:32
问题 I am using Media intent capturing image. Once process completed result will be send back to parent. Above mentioned process working properly up to Nougat Os but in Oreo the parent activity is recreating again. How can i solve this issue. 回答1: Above mentioned process working properly up to Nougat Os but in Oreo the parent activity is recreating again Your process is being terminated while the camera app is in the foreground. This is perfectly normal and has nothing to do with Android 8.0. It

How to capture photo and get image and thumbnail?

谁说我不能喝 提交于 2021-01-27 06:11:06
问题 I cannot believe that I've struggled with this simple problem for hours now, but I cannot get it to run properly. In principle I want this functionality: The user clicks a button. An ACTION_IMAGE_CAPTURE intent is fired and the default camera app opens. The user takes the photo and returns to my app. My app shows the thumbnail. Clicking the thumbnail opens the image viewer. Actually pretty simple. And with this guide it seemed like it was a matter of copy and paste: https://developer.android

How to capture photo and get image and thumbnail?

╄→尐↘猪︶ㄣ 提交于 2021-01-27 06:10:37
问题 I cannot believe that I've struggled with this simple problem for hours now, but I cannot get it to run properly. In principle I want this functionality: The user clicks a button. An ACTION_IMAGE_CAPTURE intent is fired and the default camera app opens. The user takes the photo and returns to my app. My app shows the thumbnail. Clicking the thumbnail opens the image viewer. Actually pretty simple. And with this guide it seemed like it was a matter of copy and paste: https://developer.android