Home > Enterprise >  How to solve Java.Lang.RuntimeException: 'getParameters failed (empty parameters)'
How to solve Java.Lang.RuntimeException: 'getParameters failed (empty parameters)'

Time:03-08

I have a mobile app in Xamarin where a QR-code scanner is needed. Scanning the code works fine... After scanning a code, the user is redirected to another page. After checking out this page, the user is redirected to the page where the scanner is located. So, when this redirection happens, I get the error Java.Lang.RuntimeException: 'getParameters failed (empty parameters)'... I googled for hours but couldn't find any solution for this problem. BTW, it also happens when I use the 'back' button on the emulator or real word Android device...

CodePudding user response:

--SOLVED-- Changing the PushAsync(pageX()) to PopAsync(); worked in my case. Found out that the problem is bases around getting the camera parameters. These are not available, because the camera is already using it in the former screen. So closing the camera/ending the camera activity is also a solution!

  • Related