I'm trying to decode QRCode in windows store app using ZXing.
When trying to get data from:
http://api.qrserver.com/v1/create-qr-code/?data=QE3FHB01658NFG%239QM&size=490x490
I get an NullReferenceException, at line
reader.Decode(writeableBmp);
It behaves same way with other code of the same size.
However windows phone version of ZXing is capable of reading this code.
Is there any way to make this work on RT?
I have already tried to find another QRCode reading library, but I failed to find any capable of reading this code.
That error is fixed with revision 86482 of ZXing.Net. You can build your own version from the sources of the repository or wait for the next official release which includes the fix.
There is a discussion thread in the codeplex forum about that error:
https://zxingnet.codeplex.com/discussions/446214
Related
No implementation found for method camera#animate on channel plugins.flutter.io/google_maps_1 and
plugins.flutter.io/google_maps_0 in flutter
I'm reviewing a project in flutter integrating google maps with firebase, when loading the map everything works fine, although a little slow but when closing the activity I get the errors mentioned above. Besides that the device gets very hot, is this normal?
"No implementation found for method" errors from plugins used are usually caused by either outdated plugin versions or the downloaded plugin not building properly. Running flutter clean then flutter pub get should help generate build files again. If that doesn't work, you can try updating the plugin's version.
Please forgive my ignorance, Any advice/directional assistance would be greatly appreciated.
I have a small app that reads data from an API with json requests.
One of the actions the app needs to do is to download a given PDF and open it either in the app, or in the OS default viewer.
I have followed several guides, but I think I am not including all needed files or something. The guides don't speak of including files of any type, but I still get errors.
In this link for example I followed the steps, but I am getting an error when I add these two lines in to the script at the bottom of the page:
var fileTransfer = new FileTransfer();
console.log(FileTransfer);
When running that I get the error Uncaught ReferenceError: FileTransfer is not defined at employee_documents.html:102
I am sure that either i am not including the files correctly in netbeans or I am missing something simple...
Any advise would be greatly appreciated.
To answer the question specifically. In order to solve the error, you need to run the cordova app using the CLI. In that way, the plugins installed from your cordova will be used otherwise if you're only running it via refresh or something similar it will produce an error like this.
In other words, type this command in your CLI:
cordova run browser
You can change this to your preferred platform (android, ios)
We are using the evaluation version of JXBrowser for some charting application. We wanted to showcase a demo to our client just to check the overall performance of charts with JXBrowser. But we encountered some unexpected issue while we were trying to build an "EXE".
The issue:
We created a build and the passed the URL from the classpath(webView.getBrowser().loadURL(getClass().getResource("/chartiq/stx-advanced.html").toExternalForm());); the build successfully generated and if we run the build we are getting exception "Unknown Error" but its working fine in the IDE(Eclipse).
Afterwards, we tried to host the html pages at some server and we were able to get the html rendered in the application.
Question:
1. Is the aforementioned issue related to evaluation version?
2. If above question is not the case, is there any fix for that? As we have crawled the web and find nothing related to this.
For the reference I attached the screen shot showing the full exception stacktrace.
Any help will be appreciated.
Thanks,
Nikhil
The reason of this issue is that JxBrowser doesn't support loading resources from JAR files. Chromium engine used in JxBrowser cannot load the /chartiq/stx-advanced.html file located inside JAR archive. You need to extract the file and load the extracted file.
FYI: we have already started working on the functionality that allows loading HTML files and other resources from JAR archives. An updated build with this functionality will be available in December.
I am observing a strange situation where my app passes WACK on my computer, but submission to the store fails at Certification stage, due to unsupported APIs. I am using MSVC 15 Update 2.
Solution Consists of:
Universal APP
Class Library (Universal Windows)
Class Library (Portable)
EF Core RC2
Syncfusion SfChart.UWP.dll
Store Certification output:
Error Found: The supported APIs test detected the following errors:
API sysctl in libc.dll is not supported for this application type. Microsoft.Extensions.PlatformAbstractions.dll calls this API.
API uname in libc.dll is not supported for this application type. Microsoft.Extensions.PlatformAbstractions.dll calls this API.
API RtlGetVersion in ntdll.dll is not supported for this application type. Microsoft.Extensions.PlatformAbstractions.dll
calls this API.
As mentioned, no errors are spotted by WACK on my machine. I tried both WACK that comes with visual studio and WACK that's installed separately.
Could "Class Library (Portable)" cause this just by it's existence?
Update: It's not the portable class library, i removed it and still get the same certification failure.
This was caused by entityFrameworkCore.Tools. They are still pre-release and do not support .net native properly.
There is a workaround, but you can also simply remove it from the project before compiling it with .net native and submitting it to the store.
Are you expecting Microsoft.Extensions.PlatformAbstractions.dll to be included in your package? It's possible that this is getting included in the packages built into the .appxupload file, but not in the packages you build locally to test. I have seen some recent cases where the project is including references to dlls that are unnecessary in the package and are not compliant. You may want to investigate this angle and verify if this file is being included incorrectly.
One way to validate locally why you might be passing is to check the programinventory_*.xml file in %localappdata%\Microsoft\appcertkit, and see if you can find any references to Microsoft.Extensions.PlatformAbstractions.dll. If the file is not found when locally testing, then your best bet is to investigate your project and why it's getting including when you build the .appxupload file to submit to the store.
I'm developing a Windows Phone 8.1 app that also targets Android(Xamarin)
As ever I added my string resources(.resx) on a PCL and referenced them on my launcher project to use it on my views, this all works fine on WP 8.1 silverlight but on the WinRt when I configure the project to release and run it on a device, for some reason I always get a MissingManifestResourceException. I've tried every solution for this problem out there without any success.
Note that on the emulator everything works fine, when the solution configurator is set to Debug it also works on both device and emulator. The only combination here is device and Release.
The app source code is on Github.
I was able to create a simple project to replicate this issue, basically it is a WP 8.1 app and a PCL project with the embedded resources, Download Link
Anyone has any ideas?
EDIT: After making some more testing I tried running an old Windows 8.1 app that I've done with the same localisation model and the same issue appeared so it seams to be a tool issue and not a configuration issue, since the Windows 8.1 app is on the market and everything went fine back there.
Our team ran into a similar issue which was tracked down to the runtime and not the PCL, WinRT component, or application package. That is, the resources exist within the PCL assembly, within the application package resources.pri file, but just cannot be found at runtime.
There is an active Microsoft Connect report here:
https://connect.microsoft.com/VisualStudio/feedback/details/991028/issue-using-resx-files-on-winrt-apps-windows-phone-and-windows
Our workaround was for the WinRT component to inject into each generated Resources class of each referenced PCL our own derived ResourceManager which redirected the call to the WinRT ResourceLoader instead. I've written a blog post that describes that workaround:
http://blogs.msdn.com/b/philliphoff/archive/2014/11/19/missingmanifestresourceexception-when-using-portable-class-libraries-in-winrt.aspx
I got to the bottom of this today. While bundling the app package, resources in dependencies that are not for a language being used by the app are stripped out. To prevent this from happening, add the following assembly-level attribute to your application.
using System.Resources;
[assembly: NeutralResourcesLanguage("en")]
I had the same behaviour. Today I created a new PCL Library (with another name) and copied the resx file to this project. I modified all references and everything just works fine in my WinRt (Windows Store) App now!
There was the string 'resources' in the portable class library name. Perhaps this was the problem!
I am able to reproduce this issue launching DVD sample and unfortunately in my project. I have an WP Silverlight 8.1 project registering a Windows Runtime Component Background Task and both of them using a Portable Class Library sharing some common localized strings as resources (.resx), among other things. The exception is thrown from Background Task when calling any property to get strings on generated .Design.cs class (only Release + Device).
In order to fix this I tried, without success, to use directly ResourceManager and/or to add .resx files directly into the Background Task.
I ended-up porting needed strings to .resw files and use the new "WinRT preferred" way via Windows.ApplicationModel.Resources.ResourceLoader in the Background Task project.
Seems to me that ResourceManager is not compatible with Windows Runtime anymore in release.
This is not necessary an answer, but is better than nothing since I do not have 50 reputation points for a comment.