LAMAD Windows Phone 7 20.3.2013. Part 1 The Platform and SDK.

Slides:



Advertisements
Similar presentations
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Advertisements

Kelly White | Silvertail Software Inc. Microsoft MVP – Windows Phone Development Blog:
Chapter 1: Voilà! Meet the Android
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Michael Donovan, River Campus Libraries – 12/03 DocuShare Overview and Training.
Lecture 1: IDE + Application Structure + GUI Elements CSS290: APPS ON MOBILE DEVICES.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
Second Life on a Mobile Phone Windows Phone 7 (Mango Version) Nii Annan MSc Information Technology.
Windows 8 App Challenge.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
LAMAD Symbian Qt install and deploy Installing Qt SDK and deploying Qt applications.
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
Creating a Hello App Using Google App Engine. What are Google apps? Apps is an abbreviation for application. An app is a piece of software. It can run.
Software Development. Chapter 3 – Your first Windows 8 app.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Microsoft Visual Basic 2012 CHAPTER TWELVE (ENRICHMENT CHAPTER) Windows Store Apps.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Lab 8 – C# Programming Adding two numbers CSCI 6303 – Principles of I.T. Dr. Abraham Fall 2012.
IT Academy Benefit Overview
Microsoft Azure Introduction ISYS 512. Microsoft Azure Microsoft Azure is a cloud.
Introduction to Silverlight. Slide 2 What is Silverlight? It’s part of a Microsoft Web platform called Rich Internet Applications (RIA) There is a service.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Chapter 1: Voilà! Meet the Android
Muyowa Mutemwa Supervisor: W.D. Tucker Co-Supervisors: Prof. I. Venter; Mr. M Norman.
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
Setting Up The Android SDK (Software Development Kit) A basic step by step guide leading to set up and your first Hello World App.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Integrated Development Environment (IDE)
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Advanced topics in touchdevelop touchdevelop vs. apps with Visual Studio comparison Disclaimer: This document is provided “as-is”. Information and views.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
First Venture into the Android World Chapter 1 Part 2.
BIL527 – Bilgisayar Programlama I Introduction 1.
The iOS Platform and SDK. iOS iPhoneiPad Mini iPad.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Installation of Visual Studio Android emulator and Android Studio
Inspiration  Christine Love  Digital: A Love Story  Don’t Take It Personally Babe.
Chapter 6 Google Play Services GOALS & OBJECTIVES Google Play Services give you features to attract users using Google features such as Google Maps, Google+,
Microsoft Expression Web - Illustrated Unit A: Getting Started With Microsoft Expression Web.
Exploring Networked Data and Data Stores Lesson 3.
Testing, Debugging, and Deploying a Mobile App Lesson 8.
Understanding Mobile Devices, Interactions, and Tools Lesson 1.
Enis Microsoft Avoiding common Windows Phone and Windows Store app certification failures.
THE SOURCE OF 4 TH & MAYOR: CODE, HACKS, TRICKS Jeff Wilcox Senior Software Development Engineer Microsoft SESSION CODE: WPH308 (c) 2011 Microsoft. All.
How to develop a VoIP softphone in C# by using OZEKI VoIP SIP SDK This presentation demonstrates the first steps concerning to how to develop a fully-functional.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Porting your Unity Game to the Windows Store Jump Start
Mobile Device Development
Geospatial Research & Solutions GIS.ASU.EDU
Development Environment
ASP.NET Forms.
Chapter 2: The Visual Studio .NET Development Environment
Computing.
Visual Programming week # 02 APP (Application) Architecture.
Visual programming Chapter 1: Introduction
Introduction to Silverlight
Introduction to mobile app development Module 3 – Improving your App Studio app Lance McCarthy.
Social Media And Global Computing Introduction to Visual Studio
Windows 10 Preview Andy & Jerry
Monetization & Packaging
Silverlight 2 Mike Taulty Developer & Platform Group Microsoft Ltd
Presentation transcript:

LAMAD Windows Phone

Part 1 The Platform and SDK

Windows Phone 7 Mobile OS Developed by Microsoft Appeared in the US in 2010 Mango in 2011 Tango in 2012 Live Tiles Nokia Lumia 800

Market Share Market Share 2012  There is Hope!

Technology Application development in C# or VB GUI design in XAML ( Extensible Application Markup Language ) Declarative XML-based language Created by Microsoft

Future of the OS Future is not yet clear Windows Phone 8 Version 8 just appeared 2012! Game development maybe?

Installing development Kit Newest Software Development Kit (SDK) version is 8.0. It is free to download from Note! You need Windows 8 to use the newest SDK. We use 7.1.

SDK contents Microsoft Visual Studio [Programming tool] Expression Blend [Designing tool] Project templates[Out of the box code] Windows Phone Emulator[Test app without a device] Additional tools [Register, deploy apps, etc.]

Testing on device 1. Register: Fee is 99 €/year Up to 100 apps Students = free! 2. Registration tool 3. Install Zune: com/en-us/how- to/wp7/zune-software com/en-us/how- to/wp7/zune-software.

Deploy on a device 1. Deployment tool Note! Unlock the device before any operation! 2. xap file is created on compile.

Access to Store Publish, un-publish Upgrade apps Beta publishing Check statistics Modify pricing Monitor crashes MOPSI stats on marketplace

Hello World Task: “Adding a clickable check box to our main page.” When creating a new Solution, under the default project name we can spot the: Double click the MainPage.xaml file. MainPage.xaml MainPage.xaml.cs

Hello World XAML code is created in: MainPage.xaml Drag and drop CheckBox from Toolbox.

Compile and Run Debug > Start Debugging [F5] Select test environment ‘Play’ button shortcut

Publish App! Login at and complete steps 1 and 2http://create.msdn.com/

Part 2 Location

Working with Location Native location handling object (watcher) Initialize watcher We want to get position updates often

Working with Location Complete to handle every state of the watcher. HOMEWORK attempt to start location services

Working with Location Uninitialize Objects Taking location from event args

Adding a Map Drag map from ToolBox. Remove extra XAML. Name is enough!

Adding a Marker Open the MainPage.xaml.cs file Change the location to reflect user location. Hint: Study the positionChanged function described earlier. HOMEWORK

Test on Emulator Powerful tool to virtually update the position

Map Credentials We see the following message on the map: Enter a Map Key obtained from the specified URL. Note! Implement a Map Handler if you use maps on more pages. Keep the key in one place because map keys change often.

Part 3 JSON, HTTP request

Mobile – Server

JSON {"name": "mopsi","age": 4,"address": {"streetAddress": "länsikatu 15","city": "joensuu"},"users": [{"name": "pasi","location": "länsikatu 15"},{"name": "matti","location": "länsikatu 15"}]}

JSON in Windows Phone Native JSON Support Remember UTF – 8

Subtype Polymorphism Animal tom = new Cat(); Animal mopsi = new Dog(); Animal donald = new Duck(); tom.talk(); // prints “meow” mopsi.talk(); // prints “woof” donald.talk(); // prints “quack” Animal CatDogDuck talk(){ // not implemented } talk(){ print (“meow”); } talk(){ print (“woof”); } talk(){ print (“quack”); } inheritance base class (superclass) subclasses

Request types Animal CatDogDuck Request LoginReqShareLocationReqUsersDataReq

Examples Requesting friends active in the last week The process is fully encapsulated!

JSON request base class Serializing as JSON string Need to implement In each subclass

Publically available method talk() from Animal example asynchronous

Sending request information asynchronous JSON from ToString() method {"lat":"62.6","lon":"29.7","request_type":"user_location","userid":"2"}

Reading server response Handling good/bad response

Implementing a subclass location Server has a list of these. User ID is global