Import and display Android Studio Camera images in Image View

Asked 2 years ago, Updated 2 years ago, 85 views

From Android 7.0 and above, you have to upload or upload it using a provider. This works well with 6.0. But the problem is that it doesn't work in version 5.0.

Open camera - Shoot - crop - Float in imageView.

In the process of this process, the crop will proceed, but if you grab the crop area and press OK, There's only a white screen. There's no error. File path, file creation is working well, but it's not working, so I'm going crazy. I can't proceed further because no view is displayed.

Just in case, I attach the code for the upload part. http://colorscripter.com/s/YrgUFbA

It doesn't turn off because of an error, or the app doesn't stop, and when I recorded the log, I got the file path well The file is well created, but why do I only see the white screen?

Let me show you a comparative example.

Two captured images during normal operation.

If you crop it and press finish,

the image is well button, normally together.

Now, let's look at two captured images in case of abnormal behavior.

If you crop and press finish.

Oh no! Nothing is coming out!

Normal operation device: Galaxy Note edge sdk: 6.0.1 Abnormal operation device: Galaxy S4 sdk:5.0.1

sdk

2022-09-21 17:21

1 Answers

First of all, an apology. I'm an idiot. I'm an idiot. I'm an idiot.

Only API 21 or higher can be used in the xml part, but it was not possible because layout_rowweight was used.

I changed GridLayoue to LinearLayout.

Ha...


2022-09-21 17:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.