Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera close app in Android 10 Samsung SM-A105f API 29 #921

Open
Kiparin opened this issue Feb 12, 2021 · 4 comments
Open

Camera close app in Android 10 Samsung SM-A105f API 29 #921

Kiparin opened this issue Feb 12, 2021 · 4 comments

Comments

@Kiparin
Copy link

Kiparin commented Feb 12, 2021

Bug Information

image

LogDevice.txt

Compressed_20210212_140758.mp4

Version Number of Plugin: 5.0.1
Device Tested On: Samsung SM-A105f
Version of VS: Version 16.8.5
Version of Xamarin: 16.8.000.262

Good afternoon. This mistake happens by accident. There is no pattern.
Could kill the app with 1 photo, maybe a few photos need to be taken.

@PhillipWayne
Copy link

Hey @Kiparin,
did you found any workarounds?
i have absolutely the same issue.. urrghhs

@Kiparin
Copy link
Author

Kiparin commented Apr 7, 2022

@PhillipWayne Hallo . We couldn't overcome the problem. As a result, we rewrote everything on Xamarin.forms

@Kiparin
Copy link
Author

Kiparin commented Apr 7, 2022

@PhillipWayne

         await CrossMedia.Current.Initialize();

            if (!CrossMedia.Current.IsCameraAvailable || !CrossMedia.Current.IsTakePhotoSupported)
            {
                Android.Widget.Toast.MakeText(Application.Context, "Камера недоступна", Android.Widget.ToastLength.Long).Show();
                return null;
            }
            var file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
            {
                DefaultCamera = CameraDevice.Rear,
                ModalPresentationStyle = MediaPickerModalPresentationStyle.OverFullScreen,
                CompressionQuality = 40,
                SaveToAlbum = true,
                PhotoSize = PhotoSize.Medium,
                Name = name + ".jpg",
                Directory = "StemyAppPhotos"
            }).ConfigureAwait(true);

As I understand it, the library does not fit into the dead clock of the operating system, and it kills the data transfer process. Next, and the application.

We found optimal settings in which the crash of the application decreased, but did not overcome the root of the problem.

@Maz47
Copy link

Maz47 commented Apr 13, 2022

@PhillipWayne @Kiparin

Do you have any updates? I am having the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants