James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Live, Love, Bike, and Code.


Shared Code Projects in VS: Windows Phone, Windows Store, and Xamarin!

At Build, Microsoft announced Shared Code Projects to simplify how developers are sharing code between platforms. We have had official portable class library support for Xamarin apps since late last year and it has been wonderful, however once you mix WP8 into the mix the PCL profiles get a bit limited. Shared Code Projects attempt to fix this by allowing you to create a project that are a shell for code that can be added into any project. It is basically glorified file linking with a nice UI to…

James Montemagno James Montemagno

Part 3: My StepCounter Android: Pretty UI!

I am no UI expert that is for sure, but I really like what Michael James did with the iOS version of My StepCounter. He made a nice background that changed colors from Red to Green, had a chromeless UI, and utilized very nice fonts. I want to take advantage of some of the work he did and also customize it for android. Transparent ActionBar I Wanted to ensure that the full screen was being utilized for this app, but still wanted to take advantage of the unique actions that I can put in the Actio…

James Montemagno James Montemagno

Part 2: My StepCounter Android: Step Counting in a Bound Service

In Step 1 of bringing My StepCounter to Android I investigate the raw sensor APIs available in Android. It was extremely nice to see that it was easy to tap into the step counter and detectors by simply implementing: ISensorEventListener and register for events. In my first example I was doing this all in my Main Activity, which seems like it would be alright if I was using step counter since it would return a total count since I registered for events, but I would have no way of detecting the cu…

James Montemagno James Montemagno

Part 1: My StepCounter Android: Step Sensors

In February, my fellow Xamarin Michael James [https://twitter.com/micjames6] published a wonderful app for iOS called My StepCounter [http://micjames.co.uk/stepcounter-now-open-source/]. This app uses the new CoreMotion apis in iOS 7 to track your steps on your iPhone 5s. This isn’t a new concept and there are plenty of devices and apps out there that do step tracking, but what makes My StepCounter special is that Michael gave it a beautiful simplistic UI & beautiful animations. On top of t…

James Montemagno James Montemagno

Xamarin.Android SwipeRefreshLayout for #MvvmCross

I was very excited to see that the latest version of Support v4 for Android was updated to include as most people would says it a “Pull to Refresh”… or as Google would call it a “SwipeRefreshLayout [http://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html] ”. It is now available in the Xamarin.Android Support v4 Component [https://components.xamarin.com/view/xamandroidsupportv4-18] so we should probably take advantage of it! This is actually a really slick Layout…

James Montemagno James Montemagno

Xamarin.Android Templates Pack!

Xamarin.Android already ships with a bunch of great project templates for Visual Studio, however I find that there are a few things missing. I usually start a new project with a Navigation Drawer and I am always adding new Menus, but I can never seem to remember every little bit of XML that is needed for some complex menus such as share and search. This is why I have created the Xamarin.Android Templates Pack. This is the first release that includes these items that I have listed. You can downlo…

James Montemagno James Montemagno

Cross Platform Settings for Everyone!

If you haven’t figure it out by now, I simply love portable class libraries. I have been blogging about them, talking about them on Channel 9 [http://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Using-Portable-Class-Libraries-with-Xamarin] , and I even did a 18 city roadshow [http://blog.xamarin.com/a-look-back-at-the-.net-rocks-roadshow/] discussing PCLs and Azure Mobile Services. On my GitHub [http://www.github.com/jamesmontemagno] I have started to build out a lot of applications, someti…

James Montemagno James Montemagno

Portable Class Libraries + HttpClient: So Happy Together!

I was recently on Channel 9’s VS Toolbox talking about Xamarin and Portable Class Libraries [http://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Using-Portable-Class-Libraries-with-Xamarin] where I showed of an expense taking application called My Expenses [https://github.com/jamesmontemagno/myexpenses]. This little app uses a portable class library and a SQLite database to store and track all of your expenses. I built out a full app for Android, iOS, and Windows Phone using this single PCL th…

James Montemagno James Montemagno