James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Live, Love, Bike, and Code.


Don't Put Android in Your Namespace in Xamarin Projects

One of the most common mistakes when creating a new project for Android is to put "Android" in the name. You want to because your app is going to run on Android, but it causes a series of pain immediately with namespace conflicts. When you create a new Xamarin.Forms project you may have noticed that the Assembly Name and Default Namespaces are different. If you name your Xamarin.Forms project "App37" you will see the following: This happens automatically because you are creating a full solution…

James Montemagno James Montemagno

Build Your First for iOS & Android App with Xamarin and Visual Studio

Let's start our journey together to build beautiful native cross-platform apps with .NET, Xamarin, and Visual Studio! In this blog I am going to guide you through the entire process and describe everything that is in File -> New for Xamarin. If you are a more visual learner, I have a full video that you can watch: Let's set some groundwork first by answering some frequent questions. What is .NET? .NET is a cross-platform, high-performant, and open-source runtime that is used with multiple…

James Montemagno James Montemagno

Enabling C# 9 in Xamarin & .NET Standard Projects

Whoa! .NET 5 is out and C# 9 is out! This means you are ready to use records, new pattern matching, and more! But wait a second... your apps haven't been upgraded to .NET 5 yet or are a project type that don't support .NET  so you don't have access to the new C# 9 features :( Or do you!?!?!?! Yes, of course you do! Most new features in C# are compiler based and not necessarily runtime based.  When you create a new project the compiler determines a default C# language based on these rules: Targe…

James Montemagno James Montemagno

Randomizing Lists in Power Automate Flow

Every Monday at 9:15 my team and I gather for our weekly team meeting to talk about our achievements from the previous week and what are plans are for the current week.  Traditionally during status updates people just go around the room, but in a virtual standup it is easy just to go down the list alphabetically. I don't feel like this is very fair to members in the meeting. When I became a new manager and setup the weekly meeting I knew I wanted to do something a bit different. That is why each…

James Montemagno James Montemagno

Straightening Your Webcam with a $3 Level

If you have been working from home more recently and started to invest in a sweet new home setup you may have upgraded your webcam. Most webcams mount on top of a monitor, but if you are going the DSLR or GoPro route then it has a mount on a mount or sometimes an arm. All of this can lead to complications of "straightening" your video output. If you are using a monitor arm like I am then there is yet another complication in the mix. However, with these super simple $3 "bubble levels", you can fi…

James Montemagno James Montemagno

Switching from Android to iPhone - 1 Month Later

Last month for my birthday I decided to make the big switch from Android to iPhone after being an Android exclusive user for nearly 11 years. My life has mostly been infused with Android/Google devices, which have included my long love of Android phones, Android TV, and Android based smart displays. For the last two years I have been rocking the Pixel 2 XL, which is been a solid device with an amazing camera. I have been waiting and waiting for Google to release something great in their main or…

James Montemagno James Montemagno

Hello iPhone & Apple Silicon DTK

It was a big exciting week for Apple at WWDC20 with some lovely announcements for iOS and some spectacular ones around macOS. I could not be more excited about Apple Silicon on macOS as an app developer as it will allow all of my existing iOS apps to just "work" on macOS. I really wasn't sure about running iOS apps on macOS, but with macOS 11 it is really bridging the gap and looks great. Apple also announced the Developer Transition Kit (DTK) and I was really lucky to be picked to be able to or…

James Montemagno James Montemagno

Shrink Your Android App Size with One Setting

When you are developing Android apps your app size can grow really fast.  We can get so caught up in the day to day that we forget how important it is to keep down the app size of our app. It may not seem like a 20MB APK is that much, but when you have limited internet or reception it can be a real pain. As an Android developer you have to develop for multiple ABIs, add a ton of resources and translations, and of course you have you have all of your source code and dependencies. You may have a…

James Montemagno James Montemagno

I crush code and share it, publish NuGet packages, speak at conferences, upload videos, pretend I am good at playing video games, tweet up a storm, drink gallons of coffee, and ride my bike. Checkout my monthly newsletter that you should subscribe to!