Tag Archives: Xamarin.Android

Integrating MQA into Xamarin.Android app

via Integrating MQA into Xamarin.Android app – Vidyasagar MSC.

It all started when I received an email seeking help on using MQA or to be more precise integrating MQA into Xamarin based android app. Before jumping into addressing the problem, let’s define MQA.

Genetics for Xamarin.Android

via Genetics for Xamarin.Android / Components / Xamarin.

Genetics allows attributes to be used to describe how to inject resources, views and events into an object. Based on the resource ID provided, it can inject the appropriate Android View or Android resource. Or, it can automatically attach event handlers to View events.

  • Use [Splice] on fields and properties instead of FindViewById method calls.
  • Use [Splice] on fields and properties instead of GetString or GetDrawable method calls.
  • Use [SpliceEvent], or others like [SpliceClick], on methods instead of attaching delegates to events.

Put Some Azure Active Directory in Xamarin.Forms

via Put Some Azure Active Directory in Xamarin.Forms | Xamarin Blog.

he Azure Active Directory Authentication Library (aka ADAL) makes authentication with Azure Active Directory a breeze. We’ve already covered usage of ADAL in various posts on authenticating with Active Directory, adding storage, and adding collaboration (SharePoint) to your mobile apps.
ADAL is available for various platforms and supports Xamarin.Android, Xamarin.iOS, and Windows Phone. It’s easy to integrate ADAL into these projects by adding a NuGet package. Although ADAL hasn’t released a specific Package for Xamarin.Forms, there have been many questions in the Xamarin forums and on StackOverflow about how to use ADAL in a Xamarin.Forms app.

Recently, Vittorio Bertocci, Principal Program Manager at Microsoft, posted ablog about integrating ADAL into Xamarin.Forms apps using a PageRenderer. In this post, I’ll be sharing another way to integrate ADAL into Xamarin.Forms apps using Dependency Service, which is available in Xamarin.Forms.

Customize Your Xamarin.Forms App With Pages For Each Platform

via Customize Your Xamarin.Forms App With Pages For Each Platform | Xamarin Blog.

When I was building Moments, a Snapchat clone built with Xamarin.Forms and Microsoft Azure, I needed a way to show a live, in-app camera feed so users could take all the selfies their hearts desire without having to leave the app to take a photo. This type of camera access is possible in traditional Xamarin.iOS and Xamarin.Android development, which I learned how to do from our Xamarin recipes, but I knew that this type of camera access wasn’t part of Xamarin.Forms’ out-of-the-box 40+ controls, layouts, and pages.

Luckily, not only can you extend existing controls and build your own controls in Xamarin.Forms, you can also render platform-specific pages from within your Xamarin.Forms apps. This was the type of customization that I needed, and it was surprisingly simple to implement.