-
Notifications
You must be signed in to change notification settings - Fork 162
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
using camera more than one time on android #182
Comments
just want to add a bit of info in case it helps anyone: i have a content page that is navigated to why the flyout menu. but if i navigate back to the page the camera preview is closed and i cant scan. |
SOLVED! the current published view and or the Maui Content page / flyout navigation and the android camera do not work well together. the answer with the current code is to use the code from: Camera is not released when using the CameraBarcodeReaderView in xaml #164 create a content page that is using flyout but then have that page invoke a second page that uses the camera view. the flyout page needs to create its own local copy of the page with the camera view and get rid of that instance when it has the result back. ideally the camera view control would detect the changes in the state and re-initialize the view. |
i created a content page with the barcode reader.
on first use it works great.
if i leave the page and come back the camera does not activate and i have to close the app to get it back.
i am trying to see how to solve this but so far i am not able to as i do not know how the android camera control works.
several people have posted with comments but so far i have not been able to make this work.
can someone please help ?
The text was updated successfully, but these errors were encountered: