When creating a binding project for a java library that requires the Android Support Library, how should the reference be added? Should the Xamarin Support Libraries be used or should the suport lib jar file be included in the project with a ReferenceJar build type?
I've done it by including the appropriate Xamarin Support Library via Nuget. (You might be able to do it by including the reference jar but I'm not sure)
Related
Let's assume that we have a binding library created over native AAR lib.
We are consuming this library in Xamarin Android application.
Is it possible to read data e.g. included in application AssemblyInfo from Java side - by native lib from the binding?
How to add a library for Windows to cross-platform Xamarin project in Visual Studio?
Example, we have some 3rd party service with API and DLL binaries for this API. The service provides DLL for WP, Android, iOS and .NET, but not for Xamarin. Can I use it for Xamarin.Android и Xamarin.iOS?
I have tried to connect WP or .NET DLL to the projects, but it doesn't work.
I have done something similar.
I created a libs folder under my Droid project and placed the Android-specific libraries in there.
I then added the DLL's to my project (using the Add Files option) and, this is important, changed the Build action to EmbeddedResource.
From there, I could access the packages as expected and work with the library.
I downloaded ArcGIS Runtime SDK for Xamarin (Quartz Beta).
On installing it out of the box in portable project I get following error :
Could not install package 'Esri.ArcGISRuntime.Xamarin.Forms
100.0.0.1369-beta'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7
I tried to change the profile number but it doesn't seem to work. How should I proceed?
The sample code from their github project shows that they set up their projects using a shared code approach rather than a Portable Class Library. I'm not sure they designed their library with PCL support in mind.
In the beta forums, an esri employee answered this with regards to whether the SDK could support PCL:
Unfortunately PCL isn't possible for the Runtime due to some of the native dependencies. We recommend using shared projects to share the code you otherwise would have put in a PCL.
I'd like to build a PCL library, starting from an existing C++ code. This code has some dependencies (SDL, which is available as a NuGet package) and I'd like to know if it's feasible to integrate it in a Xamarin solution (which targets Xamarin.iOS, Xamarin.Android and Xamarin.Mac).
More precisely, the code is hosted here : https://github.com/chunying/gaminganywhere/tree/master/ga/client
If so, do I need to use C++/CX language ?
I have a C# library that I want to use in my Xamarin project to deploy to an iPad.
Lets suppose the C# library is stored as MyUtilities.dll.
For a regular Windows app, I'd add MyUtilities.dll to my project Resources and then have a
using MyUtilities;
statement in the class where I wanted to use classes from that library.
How do I accomplish this same thing using Xamarin in an iPad app?
You will need to rebuild your library from the source using the Xamarin.iOS compiler. After that you would reference the same way you do in a Windows app - by either including a Reference to the dll in your project, or by including the Library project in your solution and referencing the project.