I'm working with Brother Label Printer "QL-710W" for printing purpose. I'm using Xamarin forms targeting Android for printing a web view content.
I'm facing problem in communicating with the printer. They have provided android demo application with code which is working fine for me in Android studio.
I'm trying to use provided .jar files and .so files in Xamarin Android. I'm stuck in adding and consuming .jar and dependent .so files.
Can any one suggest, How to add .jar files and .so files in binding project.
This is the error I'm getting
Java.Lang.UnsatisfiedLinkError: Couldn't load createdata from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/PrintPOC.PrintPOC-1.apk"],nativeLibraryDirectories=[/data/app-lib/PrintPOC.PrintPOC-1, /vendor/lib, /system/lib]]]: findLibrary returned null
Related
I'm trying using svg images in my Qt(5.6.3) app (on Windows 10). But it's so weird that my qt app doesn't even load qsvg(d).dll while other dlls in imageformats(qtiff(d).dll, qico(d).dll, qjpeg(d).dll, etc.) were already loaded correctly after started...
I was using svg image as image/border-image/background-image in .ui file through QStyleSheet property.
Do I need extra configurations in Visual Studio projects or qt.conf?
Does anyone can help? I'm kinda desperate.
I found a solution. I need to include some header files in QtSvg(I used qtsvgglobal.h, and qsvgwidget.h has been verified working) to make the binary load qtsvg.dll even I didn't code any svg related lines. .ui file won't tell qt maker 'I need svg capabilities'.
I am using Xamarin to support
Android
iOS
Windows 8.1
WPF
I can create a PCL project that each of those platforms can see from their platform specific project.
What I want to be able to do is host a HTML page and associated javascript files in the PCL.
All the examples I have seen for loading Local Html files are when there is a copy of the HTML in each platform specific project. I don't want 4 copies of the HTML I want one copy in the PCL.
Can this be done?
We tried to do the same thing a few months ago and as far as I remember we couldn't. The solution for us to make it work was downloading (or extracting in your case) html files to the local directory for each platform using PCLStorage nuget and load directly from local path with custom renderers.
We used custom renderers for each platform for WebView instead of crossx webview. One thing to note that instead of using UIWebView you must use WKWebView if you're targeting iOS9+.
Simply pass your main directory of html files to each renderer and try native controls to use local content. Unfortunately xamarin's crossx WebView does not provide flexible actions when it comes to local content.
I am writing a Xamarin Forms PCL application (both iOS and Android)
I have to pick an image from phone gallery.
I have read some documentation about this plugin:
Labs.Platform.Services.Media.MediaPicker
In my Common project, i have to put this code:
var device = Resolver.Resolve<IDevice>();
picker = DependencyService.Get<IMediaPicker>() ?? device.MediaPicker;
But I have an error on the first line: IDevice and Resolver Objects are not know. I think I am missing a reference or a using clause.
Thanks
You need to install the following Nuget package in all of your projects in the solution (i.e. PCL core project, iOS project, and the Android Project, and UWP project if using it):
https://www.nuget.org/packages/XLabs.Forms/
And you will need to add the following using statements:
using XLabs.Ioc;
using XLabs.Platform.Device;
using XLabs.Platform.Services.Media;
I am trying to create a xamarin XPKG for component submission as described here.
In Xamarin components store, Xamarin has provided a link to download .exe file for creating the Xamarin package which has to be extracted.
But, for some reason, I am unable to extract that file after downloading. It is not a zip file. What am I doing wrong?
The issue was that the proper file extension wasn't added when downloading the archive to Windows. The solution is to simply re-name the file and add .zip at the end.
I want to use the editor for image file types available in netbeans IDE in my platform app. That is I want to be able to open the image files for viewing. I have built the module 'org.netbeans.modules.image' from the source and included in my suite. It is getting loaded (can see from the log) but the image file types are not recognized by the Favorites window.