Getting Started with Mobile Programming: Android and Windows, Slides of Computer Programming

An overview of mobile programming, focusing on android and windows platforms. It covers the basics of getting started, including downloading sdks, development environments, and creating a first app. It also discusses ui differences, phone events, and deployment processes.

Typology: Slides

2012/2013

Uploaded on 09/27/2013

vikrant
vikrant 🇮🇳

4.4

(9)

119 documents

1 / 32

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Introduction to Mobile
Programming
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download Getting Started with Mobile Programming: Android and Windows and more Slides Computer Programming in PDF only on Docsity!

Introduction to Mobile

Programming

Overview

 Fundamentally, it all works the same way  You get the SDK for the device (Droid, Windows, Apple)  You get a development account to test the application  You deploy the application  The APIs are different from one platform to the next

Getting Started (Android)

Getting Started. Android

 The markup is XML  The code is Java with a „different‟ set of libraries  I have not worked this much

Getting Started (Windows)

 I‟ll be working with 7.1 here  Have not played with Windows 8 

Creating a First App

 When you installed the SDK you should see the Silverlight for Windows Phone templates  Note that you also need the basic Silverlight tools too  And the right version

Creating a First Windows App

 Select the Target Phone Version

Creating a First Windows App

 And the emulator appears

UI Differences

 The TextBlock is the equivalent to a multi-line text box  The TextBox and Button and other controls work as you would expect

 Note the WPF property names are much different

A First Program

 Create the XAML using the designer

A First Program

 Create the code behind

A First Program

 And just run as usual  The app appears in an emulator

Navigation Between Pages

 A Windows phone application is made up of pages  Your first is MainPage.xaml and MainPage.cs  The hardware “back” button returns to the previous page  You use the NavigationService to navigate to the next page

Navigation Between Pages

 Navigate to another page: