James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno
Author

Going Serverless with Azure Functions: SendGrid

A while back I wrote an app called MyShoppe [https://github.com/jamesmontemagno/MyShoppe], which served as a sample application that would enable any business owner with multiple locations to build an app to help their customers get store information and leave feedback. This was more than just a sample application as I built the original application for my brother who has several stores in Texas. The Old Backend The app isn’t overly complex. I leveraged Azure Mobile Apps (at the time Mobile Ser…

James Montemagno James Montemagno

Xamarin.Forms: Google Admob Ads in iOS

This weekend I spent some time integrating Admob Ads into Android applciations that live in Xamarin.Forms. I blogged about it a few days ago, so read it here first [https://motnemagno.com/xamarinforms-google-admob-ads-in-android]! I decided to take iOS for a spin next and put in Google/Firebase Admob Ads usin teh same exact mechanism. I will repeat a bit of the code here so each post can live on it’s own. Registring with AdMob So, the first thing that you will need to do is actually register…

James Montemagno James Montemagno

Xamarin.Forms: Google AdMob Ads in Android

I have been recently experimenting with integrating ads into my applications as an experiment. Not really to make money, but to just get it setup and working. I recently experimented with both Facebook Ads and Google AdMob for my iOS app “Social Post” and the results have been pretty good. I discussed this strategy a few weeks back on the Merge Conflict [http://mergeconflict.fm] podcast with Frank on Monitization. Now, it is time to go a step further and add some ads into my Xamarin.Forms ap…

James Montemagno James Montemagno

Setting Up Android x86 HAXM Emulators

I have recently had tons of questions about my recommended settings for Android x86 Emulators on Windows or on Mac. I have recently moved away from they Hyper-V Android Emulators for VS [https://www.visualstudio.com/vs/msft-android-emulator/] (which are awesome), just so I have all of the Google APIs around. So here we go. 1. Install the Intel x86 Emulators from Intel [https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager] 2. When installing make…

James Montemagno James Montemagno

Xamarin.Forms: Java.Lang.IllegalStateException

Since this one keeps coming up time and time again I figured I would write a quick blog about it. The dreaded: Java.Lang.IllegalStateException: Can not perform this action after onSaveInstanceState. that keeps crashing your application. What is it, why is it happening, and how do you fix it. This actually can happen in non-Xamarin.Forms Android applications, but it seems to keep coming up in the Forums and in GitHub due to the heavy use of async/await, plugins, and developers attempting to nav…

James Montemagno James Montemagno

Visual Studio - Unable to launch Google Android Emulators

When developing with Xamarin in Visual Studio you have a lot of options for Android Emulators. You can go with the VS Emulators for Android powered by Hyper-V, Genymotion, or the out of the box x86 HAXM powered Android Emulators from Google (a few are installed for you already). It looks though that with some of the latest updates to Windows and VS when you go to launch them you get an error message that they can’t be launched. If you look at the logs you will see something like this: Error me…

James Montemagno James Montemagno

Getting Started With & Learning C#

In 2006, after years of writing C++ and Java code, while attending UAT an instructor named Phil Miller introduced me to this amazing language called C# and changed my life. It was love at first “Hello World” and I have never looked back. C# is an extremely powerful, mature, and extremely cross-platform programming language that I have been using for decades. The beauty of C# of course is that you get this amazing cross-platform framework called .NET, which gives developers ability to perform RES…

James Montemagno James Montemagno

Cross Platform Photos with Media Plugin

After months of work, contributions, code reviews, testing, new operating system releases, and tons of awesome new features the brand new Media Plugin for Xamarin and Windows [http://github.com/jamesmontemagno/mediaplugin] is ready for mass consumption. Not matter how your developing your applications with Xamarin or Xamarin.Forms you can easily have your users take or pick photos and videos from shared code! Here is the easiest example of taking a photo and displaying it in a Xamarin.Forms i…

James Montemagno James Montemagno