Charles Petzold www.charlespetzold.com Silverlight for Windows Phone.

Slides:



Advertisements
Similar presentations
Dynamic Analysis of Windows Phone 7 apps Behrang Fouladi, SensePost.
Advertisements

Mobile Applications Development. Your next job: Mobile app developer? pp_developer_?taxonomyId=11&pageNumber=1.
Creating Games For Windows, Xbox 360, and Windows Phone 7 Ryan Plemons
Objectives Overview Define an operating system
Sascha P. Corti Developer Evangelist, Microsoft Switzerland |
Essentials of Developing Windows Phone Apps Chinthaka Dissanayake Tech Lead Exilesoft.
Programming with touchdevelop touchdevelop introduction Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Windows Phone Doug Holland Senior Architect Evangelist 9/28/2011.
Windows Phone 7 Series Architecture Deep Dive Istvan Cseri Distinguished Engineer Windows Phone
Windows Phone
DEPARTMENT OF COMPUTER ENGINEERING
Building Windows Phone Applications with Silverlight Nguyen Thanh Tung Project Manager - MISA JSC.
7 Windows Phone 7 2. Windows Phone 7 for Business 1. About Windows Phone 7 3. Windows Phone 7 for Consumer 4. Windows Phone 7 for the Developer Welcome.
An introduction to. Introductions  I’m Rob Fonseca-Ensor  A Solution Architect at Infusion  I run the Canary Wharf.NET User Group  I blog at
Friday, August 29, 2014 CSCI 351 – Mobile Applications Development.
Silverlight Development Win Phone 7 Mohammed M. Melhem Senior ICT Assistant: Application Silverlight and Win Phone.
Session 1.1. Windows Phone Topics Session 1.1 Windows Phone The Windows Phone Device.
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
Charles Petzold Navigation.
WCL208. Slate Mobile Slate Mobile Laptop Portable Laptop Portable Displays TV, Monitor Displays TV, Monitor All-in-One Desktop All-in-One Desktop.
Software Development. Chapter 2 – Programming on Windows 8.
Windows Phone 7 Development Tomer Shamam Senior Architect Sela Group.
Khalid Siddiqui Senior Architect, Mobility Center of Excellence Microsoft Corporation SESSION CODE: WPH311.
Team “Xenon” An OPERATING SYSTEM (OS) is a collection of software that manages computer hardware resources and provides common services for computer.
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.
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.
An Introduction to Silverlight Matt Harrington Developer Evangelist, Microsoft October 20, 2011.
Explain the purpose of an operating system
2 Philosophy Customer Design Experience Platform.
Windows 7 Phone October 11, 2010 Device Showcase in New York City Two mentioned carriers At&t T-mobile Expected US release early November Current Hardware.
Developing Windows Phone 7 applications Igor Ralić Vedran Vučetić
Monday, August 31, 2015 CSCI 351 – Mobile Applications Development.
WPH310. Free Phone! Windows Phone 7 as a Game Platform Free Tools to Build Great Games The Game Loop Input on Windows Phone 7 Building a Game with Your.
What is gaming console & platform? A game console is a device which outputs video signal into TV screen to display the video game. A platform is in which.
Breaking Barriers Exploding with Possibility Breaking Barriers Exploding with Possibility The Cloud Era Unveiled.
Intro to Datazen.
Monday, August 31, 2012 CSCI 333 – Systems Programming.
Symbian OS 1.  Symbian  Symbian OS is an operating system and software platform that designed for smart phones and maintained by Nokia.  Symbian platform.
Presented by Christopher Wilkins Jeff Titus Stephan Krach Pablo Bajo.
Chapter 9 Operating Systems Discovering Computers Technology in a World of Computers, Mobile Devices, and the Internet.
Drew Lytle Principal Program Manager Microsoft Corporation SESSION CODE: WPH203.
Ibraheem Osama Mohamed Mobile Developer-Rashdan IT.
/* Life runs on code */. Introduction to Windows Phone Kamalakannan Annamalai Windows Phone Developer Ilink Systems Twitter : kanal_7
WINDOWS PHONE 7 DEVELOPER GUIDE A guide to 3 screens and the cloud Scott Densmore Sr. Software Development Engineer Microsoft patterns & practices.
Eric Strittmatter COSC 480 – Spring 2012 Previewing.
1 Αλέξανδρος Σιγαράς Microsoft Student Partner. 2 Agenda StudentGuru.gr Εισαγωγή στο Blend Windows Presentation Foundation (WPF) Silverlight Windows Phone.
Testing, Debugging, and Deploying a Mobile App Lesson 8.
Understanding Mobile Devices, Interactions, and Tools Lesson 1.
Accelerometer based motion gestures for mobile devices Presented by – Neel Parikh Advisor Committee members Dr. Chris Pollett Dr. Robert Chun Dr. Mark.
Building Windows Phone 7 Games and Applications Yes, yes! “Games and Applications” and not “Applications and Games” Content is under NDA – please do no.
Daniel Tizon Semior Consultant, Microsoft Regional Director ANURA-SOLSTEAM Développez pour Windows Phone 7.
Application development process Part 1. Overview State of the mobile industry Size of the market Popularity of platforms How users use their devices Internationalisation.
Android. Android An Open Handset Alliance Project A software platform and operating system for mobile devices Based on the Linux kernel Developed by Google.
Eric Strittmatter COSC 380 – Spring 2012 Previewing.
Mobile Device Development
Windows Phone 8 Programming
CSCI 351 – Mobile Applications Development
Architecture of Android
Chapter 5: Using System Software
The Windows Phone Application Platform
6/12/2018 3:52 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
CSCI 351 – Mobile Applications Development
MonoGame and Windows 8.
Hosted Web Apps with Windows App Studio
Tooling and Diagnostics
Developing Games for Windows Phone 7 with XNA Game Studio 4.0
Android Developer Fundamentals V2
Silverlight 2 Mike Taulty Developer & Platform Group Microsoft Ltd
CMPE419 Mobile Application Development
Christopher Harrison Jeremy Foster
Presentation transcript:

Charles Petzold Silverlight for Windows Phone

Agenda Windows Phone 7 Silverlight for Windows Phone Your first phone application Deploying to a device Page orientation Screen layout Device information

Meet or exceed a common hardware specification –Minimum 1 GHz ARM v7 CPU and DirectX9 GPU –Minimum 256 MB RAM and 8 GB flash storage –480 x 800 screen (480 x 320 coming later) –Capacitive 4-point multi-touch screen –Minimum 5-megapixel camera –Location (Assisted-GPS), accelerometer, compass, light sensor, and proximity sensor –Connectivity support via cellular networks and WiFi Available from Samsung, HTC, and other OEMs Windows Phones

Operating system for Windows phones –Clean break from the past (Windows Mobile) –Released in U.S. on November 8, 2010 "Metro" user interface –Crisp and sexy (icon grids are boring) –Start screen populated with tiles –Hubs that aggregate content (Pictures, Games, etc.) Built-in browser based on IE7 and IE8 Apps written in Silverlight or XNA Windows Phone 7

UI Design and Interaction Guide for WP7 – WP7 Application Certification Requirements – Documents You Must Have

Primary development platform for WP7 phones Based on Silverlight 3, but with some features of 4 Adds many phone-specific features –Page orientation (portrait or landscape) –Richer touch APIs (Manipulation events) –Sensor and location APIs –Device APIs (e.g., camera) –Launchers and choosers and more Based on.NET Compact Framework 3.7 Silverlight for Windows Phone

Windows Phone Developer Tools –Visual Studio 2010 Express for Windows Phone –Expression Blend for Windows Phone –Windows Phone Emulator –XNA Game Studio – amilyID=04704acf-a63a-4f97-952c-8b51b34b00ce Silverlight for Windows Phone Toolkit – Phone Developer Tools

Runs phone apps in a VM Supports multi-touch on PCs with multi-touch screens and OSes that support multi-touch For best performance, enable hardware-assisted virtualization in your BIOS – For GPU emulation, run dxdiag.exe and make sure DDI version >= 10 and WDDM version >= 1.1 – Windows Phone Emulator

demo Your First Windows Phone Application

Visual Studio supports deploying to the emulator or to a device (phone) To deploy to a device, you must: –Register and obtain a developer account –Unlock the device with the Developer Registration Tool –Download and install the Zune client Debugger works with code running on a device! Deploying to a Device

Start the Zune client before deploying to device Media APIs not available while client is running Zune Client

First shipped in October 2010 tools update Enables apps running on phones connected to PCs to access media APIs WPConnect

demo Testing on a Device

Display can rotate when orientation changes PhoneApplicationPage.SupportedOrientations controls behavior when orientation changes –Portrait – Display does not rotate –Landscape – Display does not rotate –PortraitOrLandscape – Display rotates automatically PhoneApplicationPage.OrientationChanged events fire when orientation changes –If SupportedOrientations = "PortraitOrLandscape" Page Orientation

Preventing the Page from Rotating // In MainPage.xaml SupportedOrientations="Portrait"

Rotating the Page // In MainPage.xaml SupportedOrientations="PortraitOrLandscape"

Customizing the Rotated Page // In the page constructor this.OrientationChanged += new EventHandler (OnOrientationChanged); private void OnOrientationChanged(object sender, OrientationChangedEventArgs e) { if ((e.Orientation & PageOrientation.Landscape) != 0) { // TODO: Adjust the page for landscape mode } else // Portrait { // TODO: Adjust the page for portrait mode }

demo Page Orientation

Screen Layout Screen layout includes optional system tray and application bar System tray 32 pixels high in portrait mode 72 pixels high in landscape mode Application bar 72 pixels high in portrait mode 72 pixels high in landscape mode

Hiding the System Tray // In MainPage.xaml <phone:PhoneApplicationPage x:Class="PhoneDemo.MainPage"... FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="Portrait" Orientation="Portrait" shell:SystemTray.IsVisible="False"> Hide the system tray

Getting the Absolute Screen Size double width = Application.Current.Host.Content.ActualWidth; double height = Application.Current.Host.Content.ActualHeight;

Getting the Usable Screen Size double width = this.ActualWidth; double height = this.ActualHeight;

DeviceExtendedProperties class provides information about host device Retrieve dictionary-type values with GetValue Getting Device Information

DeviceExtendedProperties ValueDescriptionType DeviceManufacturer Device manufacturer (e.g. SAMSUNG)string DeviceName Device name (e.g., SGH-i917)string DeviceUniqueId Device ID (e.g., B-05-D3-FA…)byte[] DeviceFirmwareVersion Firmware version (e.g., )string DeviceHardwareVersion Hardware version (e.g., )string DeviceTotalMemory Total memory (bytes)long ApplicationCurrent- MemoryUsage Memory currently allocated (bytes)long ApplicationPeak- MemoryUsage Peak memory allocated (bytes)long

Getting Model Information string manufacturer = DeviceExtendedProperties.GetValue ("DeviceManufacturer").ToString(); string name = DeviceExtendedProperties.GetValue ("DeviceName").ToString(); string id = BitConverter.ToString((byte[]) DeviceExtendedProperties.GetValue("DeviceUniqueId"));

Getting Memory Information string total = ((long)DeviceExtendedProperties.GetValue ("DeviceTotalMemory")).ToString("N0") + " bytes"; string current = ((long)DeviceExtendedProperties.GetValue ("ApplicationCurrentMemoryUsage")).ToString("N0") + " bytes"; string peak = ((long)DeviceExtendedProperties.GetValue ("ApplicationPeakMemoryUsage")).ToString("N0") + " bytes";

Charles Petzold Questions?