How to solve Java.Lang.RuntimeException: 'getParameters failed (empty parameters)' - c#

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...

--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

Bot emulator-unable to debug

I gave the correct AppId and Password. But still, I am getting this error
I also tried leaving a blank in place of AppId and Password. Any suggestions. I came across this issue several times in the past. But everytime time it worked magically after some time. Very inconsistent behavior.Any suggestions.
getting error
[14:58:55]Cannot post activity. Unauthorized.
[14:58:55]POST401directline/conversations//activities
I noticed an update notification on my emulator. I clicked on the notification, installed the update and restarted my emulator. Then it worked.

IOException: Unexpected end of Stream, the content may have already been read by another component

Until yesterday, everything worked fine, but today I have such a problem when submitting the form (submitted successfully) with this error.
After refreshing the page, everything is stabilized.
This problem are just in my laptop , in other pc are good
I had exactly the same problem, i don't know what exactly was. But I noticed that my app was doing Http Get calls with multipart/form-data.
I opened Chrome and I updated to latest version, then I restarted Chrome and all worked. Despite this, I think just restart Chrome solved the problem.

Xamarin barcode app Zxing.Net.Mobile not working

I followed this tutorial "https://github.com/Redth/ZXing.Net.Mobile" when I use Live Preview and pair it with my android device and try to hit scan button the code breaks and it gives error like "Exception of type 'System.Collections.Generic.KeyNotFoundException' was thrown".
The error is thrown on very first line.
var scanPage = new ZXingScannerPage();
I 'm new to this one and not sure how to solve, if possible please let me know any barcode code which reads as well as scan in Visual studio 2017.
So I have checked in the github as well, its clear from forum that live preview has issues related to System.Collections.Generic.KeyNotFoundException so either have device connected or install some emulator and check.

__IE_PrintType script error when calling WebBrowser.ShowPrintDialog from windows forms app

I've been tasked with fixing a bug in a windows forms application written in C# that basically allows the user to perform an operation then print a summary of the results by calling WebBrowser.ShowPrintDialog() on button_click. However, upon clicking the Print button, a javascript error is returned, but only in IE10 and IE11; older versions work fine. Unfortunately I'm unable to debug the script error because it causes the app to crash as it attempts to launch IE's debugger.
Line: 291
Error: Unable to get property '__IE_PrintType' of undefined or null reference
Basically, the results of the user's action are passed through to a browser via WebBrowser.Navigate where they are rendered on the client then can be printed.
browser.Navigate(new Uri(targetFile.ToString(), UriKind.Absolute));
Unfortunately, I have no clue where this script error is coming from or why. My first inclination was to print out the html output via MessageBox.Show, save it off, then open it directly in IE11 to see if the error reproduced, only to find out that it didn't; IE11 handles it just fine.
Further research led me to believe that compatibility mode is used when using the WebBrowser object, but opening the html in IE11 reveals that it's already using EDGE mode.
What am I missing here?

WP8 Ads are not appearing

I am trying to get Windows Advertising into my App, but nothing shows up.
I know the XAML control is correct because when I put in the default values I get the Microsoft Advertising banner.
I eventually hooked onto the ErrorOccurred event and the AdErrorEventArgs keep returning with "no ad available" which I am not sure what that means.
The stack trace I keep getting is:
at Microsoft.Advertising.Shared.AdvertisementFactory.CreateFromResponse(String response, AdDownloadCompleteCallback adDownloadCompleteCallback)
at Microsoft.Advertising.Shared.AdPlacement.CreateAdvertisement(Byte[] bytes)
at Microsoft.Advertising.Shared.AdPlacement.AdRequestComplete(IWebRequestWrapper request)
I have tried running it app on my device while debugging and not debugging and I have yet to see any advertising.
At the time of writing my category is set to Lifestyle - Art + Entertainment
"no ad available" error means just that. There is no ad inventory available. It is the most typical behavior outside US.
The control is probably working fine, but PubCenter is not serving ads for your app. In my apps I have noticed that the performance of PubCenter is very poor outside United States.

Categories

Resources