
Learn to build native Android and iOS apps with Xamarin Forms from a beginner-friendly, single codebase approach. Discover how a free path accelerates mobile development for Android and iOS.
Explore how Xamarin forms enables building native android and ios apps from a single C# codebase, now supported by Microsoft after its acquisition.
Discover why Xamarin provides a single native codebase for Android and iOS apps, delivering fully native performance with easier maintenance and easier to scale compared to other cross-platform tools.
Xamarin Forms lets you build with a single C# codebase that compiles to native Android, iOS, and Windows apps, delivering native UI and performance across platforms.
Install Xcode from the Mac App Store and set up Visual Studio for Mac to enable iOS and Android development with Xamarin Forms, including .NET Core and Android tools.
Install Visual Studio community edition on Windows, select mobile development with .NET to enable Android and iOS workflows, and note that iOS testing requires a Mac or cloud Mac solution.
Create a cross-platform Xamarin.Forms project in Visual Studio for Mac, selecting a blank forms app with dotnet standard shared code, to target Android and iOS with shared UI and logic.
Create a cross-platform Xamarin forms project on Windows by selecting the mobile app template, choosing dot net standard, and enabling Android and iOS, which creates three dot net standard projects.
Explore how Xamarin forms define content pages and elements such as entries and text, using opening and closing tags, and learn how containers arrange controls for Android and iOS.
Learn how to use a StackLayout container to stack UI elements like entries and images, adjust margins for a clean cross-platform layout, and prepare for user interaction handling.
Create a main page for adding new contacts with named input entries and placeholders, and implement a save button click event handler, naming it clearly to handle actions on press.
Create and wire up a button click event in Xamarin.Forms by naming elements in the markup and implementing the handler in the C# code-behind.
Create a new contacts page and set a navigation page as the app’s main page, with the contacts page as its root to enable navigation.
Configure a toolbar with toolbar items in a Xamarin forms contacts app, wiring a new contact button to navigate from the main page to the new contact page.
Navigate from the contacts page to the main page using the navigation page, enabling back navigation and a single line to open the new contact page.
Test the Xamarin Forms app on Android by creating a virtual device, launching the app, and validating navigation from the contacts page to the main page via the toolbar.
Test iOS apps on the macOS iOS simulator by selecting the iOS project and a device such as the iPhone 10, then launch to verify native controls and navigation.
Learn how to test iOS apps from Windows by connecting Visual Studio to a Mac host, enabling remote login, and remoting the iOS simulator to Windows.
Add the sqlite lite package to a Xamarin forms project to enable a local database, using NuGet on Windows or Mac. Select the widely downloaded package by Frank Krueger.
Define the Android main activity to locate the database file path using environment special folders. Pass this path to the app via a shared class in the Xamarin Forms project.
Demonstrate iOS app delegate setup that mirrors Android, loading the shared Xamarin Forms app, wiring the app constructor, and resolving the database path by combining personal, example, and library folders.
Create a C# model class to map entries to a table, with properties for name, last name, email, phone, and address, and use primary key attributes for an auto-incremented ID.
Insert a new contact into a sqlite-like database in Xamarin forms by defining entries, creating a contact object, creating the table, and using a using block for insertion.
Read the contacts from the sqlite database each time the contacts page appears, using a using block for the connection and converting the query to a list.
Define the list view in the content page and bind its items source to the contacts list, converting it to an enumerable, then preview how elements render in the list.
Explore how to display list items in Xamarin.Forms by creating a data template and binding properties such as name and email to text cells, with styling for the detail text.
Explore extended resources and courses to advance your mobile development skills. Build more capable apps by applying SAML and C-Sharp knowledge, designing applications, and adding machine learning features.
A few years ago I wanted to start developing mobile apps, back then for some reason for the Windows Phone 7 OS, and I just didn't understand what I was finding on Google, too advanced for a newbie like me. I felt overwhelmed, even though I had some (very light) programming experience, this seemed too complicated, maybe that was why it was one of the latest subjects in college (and I was just starting out).
And then I heard about this event that Nokia was having for developers, two full days of learning to build Windows Phone 7 and S40 apps, and we would start with Windows Phone. So my mom, with I'm sure a few efforts, gave me just enough money for one day, to travel to the big city, get to the event, have something to eat, and return home. So I skipped school that day, and went to the event, and luckily that day it would be about Windows Phone 7, and I say luckily because a few minutes by the instructor that day completely changed my life, and I mean this in every sense of the word.
In literally just about 30 minutes, this guy perfectly explained how to build Windows Phone 7 apps, and a world of opportunities opened for me, I would go ahead and build dozens of apps for WP7, WP8, Windows 8, and Windows 8.1 thanks to that quick lecture
The reason I'm writing about this story, is because I want you to have the same opportunity that I did back then, so you too can start building apps, and with no need from your loving parents to sacrifice some of the money they may very well lack, this course is entirely free. Hoping that this course does to your professional career what those 30 minutes did for mine all those years ago.
If you are a complete beginner on app development, I made this course with you in mind, so after just a few minutes you unlock a world of posibilites with the apps that you can build.
And even better, Xamarin Forms unlocks more doors now by itself than Windows Phone 7 did back then. Xamarin Forms allows you to build NATIVE both Android and iOS apps reusing one code base.
So, if you are a complete beginner, take this course, and at the end, you will know how to:
Build iOS apps and
Build Android apps
By 100% reusing C# and XAML code!
Add SQLite local databases to your apps
Jumpstart your mobile app development career, don't wait for the University to teach you in the last semesters, act now and start building iOS and Android apps today.