Mono for Android

A basic introduction to using Mono for Android to develop Android applications in C#.
Course info
Rating
(101)
Level
Beginner
Updated
Dec 15, 2011
Duration
5h 9m
Table of contents
Overview
Setup
The Activity
Android UIs
Preferences
Menus
Dialogs
Deploying and Testing
Description
Course info
Rating
(101)
Level
Beginner
Updated
Dec 15, 2011
Duration
5h 9m
Description

Learning to develop an Android application can be difficult. This course is designed to make developing an Android application as simple as possible. In this course you will learn to create a fully functional Android application using Mono for Android. We will see how easy it is to create an Android application using C# and the .NET framework. If you have thought about Android development, but technology and language have been a barrier that has prevented you from getting started, this course is for you.

About the author
About the author

John Sonmez is the founder of Simple Programmer (http://simpleprogrammer.com), where he tirelessly pursues his vision of transforming complex issues into simple solutions

More from the author
Beginning Lua
Intermediate
2h 50m
2 Dec 2013
Beginning HTML 5 Game Development With Quintus
Intermediate
2h 52m
25 Oct 2013
Beginning HTML5 Apps For Firefox OS
Intermediate
2h 20m
17 Oct 2013
More courses by John Sonmez
Section Introduction Transcripts
Section Introduction Transcripts

The Activity
Hi, this is John Sonmez from Pluralsight, and in this module we're going to be talking about the Activity in Android, in Mono for Android. So let's go over what we're going to cover in this module. The first thing that we're going to do is we're going to talk about the Activity in general, what is an Activity, and we're going to talk a little bit about how Activities work and kind of the lifecycle of an Activity. And we're not going to get too far in-depth into the architecture of an Activity, but we're just going to basically seek to get a basic understanding of what an Activity is so we know what we're working with here. Then we're going to go ahead and we're going to start working in the actual Mono for Android code and we're going to start by updating a View. So part of our activity is going to have a View or the user interface and we're going to see how we can update that user interface from inside of our Activity class. Then the next thing that we're going to want to do is to be able to get some data back from the View. So I'm going to show you how you can go ahead and pull back data from that View in your Activity class. And then we'll want to be able to respond to events that are happening in the View when users click on things or they select items, we want to be able to respond in our Activity so I'm going to show you how to do that. And then we're going to want to be able to launch new Activities and part of that is going to be creating a new activity. So I'm going to show you what is involved with creating a new Activity, creating a user interface or layout to go with that Activity, and then finally we're going to take a look at what it takes to launch that new Activity and how to get that started up, and to basically make your application be able to transition from one Activity to another.

Preferences
Hi, this is John Sonmez from Pluralsight, and this module is about using Preferences in Mono for Android. Let's go over what we're going to cover in this module. The first thing that we're going to talk about is how Preferences work inside of Android in general. In Mono for Android, Preferences are going to work pretty much the same way that they would in a normal Java-based Android development environment. So we're going to look at what Preferences are how they generally work. Then we're going to go through all of the Preference types. I'm going to show you what the Preference types are. We're going to talk about these a little bit just so you have an idea of what is available to you. We're not going to look at every single one of them, but we're going to spend some time talking about them and explain what each one is for. Then we're going to go ahead and get into the code and we're going to create what is called a Preference Activity. We're basically going to create an Activity Screen in our ProteinTracker application and we're going to make it be able to load Preferences from an XML file, and that's going to be our introduction to actually creating preferences in our code. Then once we have our Preference Activity, we're going to want to be able to access those Preferences from other parts of the application. So we're going to talk about how to retrieve Preferences that may be stored inside of our application and then we're also going to look at the other side of that and we're going to see how we can save Preferences. And then finally we're going to talk a little bit about some other storage options. There are going to be times when Preferences are not the right thing to use and I just kind of want to give you a little bit of an idea of what other things are available for you in Android as far as storage.

Menus
Hi, this is John Sonmez from Pluralsight, and in this module we're going to be talking about Menus in Mono for Android. So let's go over what we're going to cover in this module. Well, the first thing that we're going to do is we're just going to kind of go through all of the menu types just so we can see what they look like and kind of get an idea of what menus do and how menus work inside of Android. And this is going to be kind of a repeat. If you've already listened to my Introduction to Android course, I'm going to use some of the same slides here because there's really not a difference between Mono for Android and regular Android as far as the basics of how Menus work, so we're just going to recover that material. Then we're actually going to get into the code here and I'm going to show you how to create an Options Menu inside of Mono for Android and then we're going to look at ways that we can respond to that menu. We're going to do the same thing for the Context Menu, I'll show you how to create a Context Menu and then how you can respond to Context Menu items, and then I'm going to show you how to add a Submenu to one of your menus.