I'm searching to integrate the Fyber SDK into a xamarin.Forms cross-platform app to integrate an OfferWall. The problem is that I do not find any documentation by Xamarin side and by Fyber it only tells me the way is usually done (with Natives SDKs). I already looked for a Binding Library but Still learning how to use them.
¿Is there any other way? ¿Any tips?
Thanks.
I guess the best solution is to create a Binding Library with the OfferWall .jar library
There a link to explain you how to create a Binding Library for android: https://developer.xamarin.com/guides/android/advanced_topics/binding-a-java-library/
And this one for binding a .jar library: https://developer.xamarin.com/guides/android/advanced_topics/binding-a-java-library/binding-a-jar/
Related
I've recently started learning about Xamarin so please bear with me. I'm not sure if this is an obvious question
Creating a cross-platform mobile app in VS2017 will create 3 projects: Xamarin.Forms, iOS, Android.
So in my Xamarin.Forms project I was able to add a map to my Form, and now I can see the map in my Android emulator. That works great. I havent't touched the other two projects.
Now I have to add some functionality that's native of each platform, so I would need to go, for example, to the Android project to add the widgets, logic, etc.
Is C# used in these native projects or do I need to learn a new language?
I'm asking because Android Studio uses java and iOS uses Objective C, so I'm not sure if I need to learn these languages for cha
If you check the Microsoft website for Xamarin.Forms it answers your question then and there;
Xamarin.Forms expose a complete cross-platform UI toolkit for .NET developers. Build fully-native Android, iOS, and Universal Windows Platform apps using C# in Visual Studio.
But even F# is available as an option.
As far as your platform-specific question goes there is a whole separate guide that teaches you how and when you need platform specific code which can be found here
Is C# used in these native projects or do I need to learn a new language?
I'm asking because Android Studio uses java and iOS uses Objective C, so I'm not sure if I need to learn these languages.
Yes, that is the whole point for the Xamarin native and Xamarin.Forms framework that pure C#/F# developers can become mobile application developers without learning a new language.So existing .Net teams can execute mobile projects.
But in some cases, you might have to convert native Java and Objective-C code to C# so it's always better if you have a basic level of understanding in them.
I will suggest you read the Code Sharing Strategies available in Xamarin Forms before deciding which method do you wanna follow: I personally and the Community prefers using The .Net Standard methodology to share the code you can choose for yourself.
Good luck with your future endeavours and feel free to revert in case of further queries.
Yes, all Xamarin projects use C# (or F#). You do not need to use java or Obj-C/Swift, although there are ways to incorporate native libraries written in those languages into Xamarin projects.
Xamarin has a entire section of docs on how to incorporate platform specific behavior into a Xamarin Forms app.
I would like to use an android project in xamarin for example this one: https://github.com/jaydeepw/poly-picker
This project is written in java and has resources and activities.
As far as I understand it is not possible to compile such a project into a jar and then to create a binding library.
Is this correct?
What options do exist to use such a project, apart from porting the source code?
Unfortunately, only you can binding Java libraries, not apps.
You can read this post:
https://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/
I am trying to create an application using the MVVM Light framework that will work with WPF (4.5/4.5.1) (and perhaps future Windows 8.1) and with Xamarin.Forms 1.3.
I am trying to create two solutions - they will share a "Model" and "ViewModel" project (thinking PCL) but will implement their own UI in Xamarin.Forms and WPF. I'm hoping to be able to databind to properties and commands in both solutions. This would enable me to create one "engine/backend" for the app, but be able to implement a Windows 7/8, iOS and Android version (Windows Phone is not required).
I am struggling finding the correct NuGet package with the MVVM Light libraries that will compile both in Visual Studio for the WPF side and the other solution in Xamarin Studio on the Mac for the iOS and Android side. One group will be doing the WPF work and another the iOS/Android work (and a third the services, so I'd like to be able to share the PCL-Models project with a WebAPI project). I can get the shared Models project to work, but I'm having issues finding the right PCL/Profile/Package combination to work for this scenario.
Has anyone gotten something like this to work between Xamarin.Forms, WPF and MVVM Light 5
Sure it works fine. Check your build targets on common Pcl library and mvvm light should be installed for whole solution.
You create a blank solution, add a PCL and make sure you add the build targets correctly (I think it asks for them when you create the pcl project). Install MVVM light libraries only to this project. There, done. Now you can add Droid /iOS / forms / what ever and add MVVM light to them only (now install the non libraries only package, since you need the viewmodel locator it creates for you).
I was using the Math.NET Neodym library for a project on Visual C# for a winforms application.
Here's the project's link: Math.NET Neodym
Now, I want to port it over to Windows Phone 8, When adding a reference to the library in the WP8 SDK, I get an error along the lines of:
a reference to a higher version or incompatible assembly cannot be
added
Now, I've asked this question before, and Ive been told that I can port the library to WP8 by recompiling it. And I have no idea how to? Do I just copy paste each file from the Library into a new WP8 library project and compile?
The easiest way would be to convert the project to a Portable Class Library. This would allow it to be used by Windows Phone as well as desktop apps.
You should be able to just open the solution, and change the appropriate project properties to do this. However, if any types are not supported by the target framework(s), you'll need to rework or remove those portions of the library.
Please see the answer to this question at a previous post. This might not be an issue with "higher version", just VS2012 having an irrelevant error message.
I'd like to look into the possibility of building a (cross-platform) library (no UI) using MonoTouch. From what I've seen so far, the Mono project looks like a very good candidate for such an endeavor.
Can MonoTouch compile libraries or frameworks for iOS?
It can compile them for use within MonoTouch apps for iOS, however don't expect it to compile into a native library that an obj-c application can then utilize...
checking here:
http://xamarin.com/monotouch
CROSS PLATFORM
Easily share code between iOS, Android and Windows Phone 7.
and then:
C# & .NET
Everything you love about .NET, including LINQ, Delegates and Events.
so apparently the answer is yes :)
also check this one: http://blog.xamarin.com/2011/10/12/monotouch-5-with-ios-5-support/