James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Android

Embedding Xamarin.Forms into a Xamarin Native App #TheFuture

You know I love Xamarin.Forms, but I also absolutely love Xamarin Native with iOS Storyboards, Android XML, and all of that UWP goodness. When you want to build an app that opens in sub-2 seconds, super optimized, and takes advantage of every custom control and animation out there (especially with material design) you have to go Xamarin Native. That is why the next evolution and favorite new feature, Xamarin.Forms embedding, of Xamarin.Forms enables you to embed any Xamarin.Forms ContentPage int…

James Montemagno James Montemagno
Getting started, step by step, in under 15 minutes!

Yesterday, we announced the Xamarin Live Player for both iOS and Android which includes the Live Player Extensions for both Visual Studio 2017 and Visual Studio for Mac enabling you to get started with mobile development with just a device! The Live Player apps let you debug your apps and make live edits and see them reflected live on your device. Your code runs inside of the Live Player app, so no emulator needed and everything happens over WiFi, so you don’t even need to plug anything in.

To get a good grasp of how the app works check out Miguel and me on stage at Build 2017 on the Future of App Development with Xamarin.

Getting started with the Live Players is super simple and we have AMAZING DOCUMENTATION that you should read to get started.

Now once you have things running be sure to read through the Limitations and the Troubleshooting guide if you run into any issues and join the discussion on the forums.

Update 1: New Xamarin Live Player for Android Walkthrough video:

Update 2: Want to know how the Live Player was built? Listen to Frank and I on Merge Conflict discuss:

Getting Started with the Xamarin Live Player

Getting started, step by step, in under 15 minutes!Yesterday, we announced the Xamarin Live Player [http://xamarin.com/live] for both iOS and Android which includes the Live Player Extensions for both Visual Studio 2017 and Visual Studio for Mac enabling you to get started with mobile development with just a device! The Live Player apps let you debug your apps and make live edits and see them reflected live on your device. Your code runs inside of the Live Player app, so no emulator needed and e…

James Montemagno James Montemagno

Important OnPlatform Changes in Xamarin.Forms

Last week I blogged about the important changes to Device.OS [http://motzcod.es/post/159463651162/device-os-xamarin-forms-obsolete-runtime-os] in the latest version of Xamarin.Forms. Well, I am back with some other changes from that same exact Pull Request [https://github.com/xamarin/Xamarin.Forms/pull/658] that have to do with OnPlatform in code and XAML that use the new Device.RuntimePlatform. So, what is OnPlatform? It allows you to set properties on elements or run specific code based on…

James Montemagno James Montemagno

Colored Map Markers on Xamarin iOS and Android

I was getting ready for my next Tech Summit presentation and wanted to spice up my Maps for iOS and Android. I didn’t want to create any custom marker images or anything like that, but just wanted a little color flare on it. I knew there had to be an API out there to do it in each of the native frameworks and of course there was, so here is the quick and easy solution. (If you need this for Xamarin.Forms this would make a great Effect most likely). Android - Google Map Markers Surprisingly this…

James Montemagno James Montemagno

Scoreboard: An app to keep track of board game scores

Today, I am excited to announce Scoreboard, a brand new app for iOS and Android making it drop dead simple to keep track of your board game scores. It is available today on the App Store [https://itunes.apple.com/us/app/scoreboard-game-score-keeper/id1191033523?ls=1&mt=8] and Google Play [https://play.google.com/store/apps/details?id=com.refractored.scoreboard]. Leave that pen and paper behind, Scoreboard enables you to easily keep score for any game with up 4 players or teams. Easily ke…

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