Rob Miles Windows Phone Blue Book

Total Page:16

File Type:pdf, Size:1020Kb

Rob Miles Windows Phone Blue Book Windows Phone 8 Programming in C# Rob Miles Windows Phone 8 Contents 1 Getting Started with Windows Phone 9 Programmer’s Point: Stuff worth knowing ........................................................... 9 1.1 The Windows Phone Platform .............................................................................. 9 A Windows Phone as a Computer ........................................................................ 9 The Windows Phone Hardware ............................................................................ 9 The Windows Phone Processor ............................................................................ 9 Programmer’s Point: Only Sweat the Speed when you have to ......................... 10 The Windows Phone Operating System ............................................................. 10 Graphical Display ............................................................................................... 10 Touch input......................................................................................................... 11 Location Sensors ................................................................................................ 11 Accelerometer .................................................................................................... 11 Compass ............................................................................................................. 11 Gyroscope ........................................................................................................... 12 Sensor Integration and Simulation ..................................................................... 12 Camera ............................................................................................................... 12 Hardware buttons ............................................................................................... 12 Memory and Storage .......................................................................................... 13 Network Connectivity ........................................................................................ 13 Programmer’s Point: Be able to handle changes of network state ...................... 13 Near Field Communication (NFC) ..................................................................... 14 Bluetooth ............................................................................................................ 14 Platform Challenges ........................................................................................... 14 1.2 The Windows Phone Ecosystem ........................................................................ 14 Connecting a Windows Phone to a Windows PC ............................................... 14 Windows Live and Xbox Live............................................................................ 15 Bing Maps .......................................................................................................... 15 Windows Notification Service............................................................................ 15 Windows Phone and Windows Azure ................................................................ 16 Using the Ecosystem .......................................................................................... 16 1.3 Windows Phone program execution ................................................................... 16 Application Switching on Windows Phone ........................................................ 16 Background Processing ...................................................................................... 17 Windows Phone and Managed Code .................................................................. 17 Windows Phone and Compiled Code with C++ ................................................. 19 The MonoGame Framework and XNA .............................................................. 19 1.4 Windows Phone application development .......................................................... 19 Visual Studio 2012 and Windows Phone ........................................................... 19 The Windows Phone Emulator ........................................................................... 20 Accessing Windows Phone Facilities ................................................................. 21 Windows Phone Connectivity ............................................................................ 21 Data Storage on Windows Phone ....................................................................... 21 Development Tools ............................................................................................ 22 Windows Phone Store ........................................................................................ 22 What We Have Learned .................................................................................................... 23 2 Making a User Interface with XAML 24 2.1 Program Design with XAML ............................................................................. 24 XAML ................................................................................................................ 24 Using Blend for Visual Studio to create XAML ................................................ 25 The Windows Phone Design Style ..................................................................... 25 XAML Elements and Software Objects ............................................................. 26 The Toolbox and Design Surface ....................................................................... 28 Managing Element Names in Visual Studio ....................................................... 30 Properties in XAML Elements ........................................................................... 31 Using Properties ................................................................................................. 32 Page Design with XAML ................................................................................... 34 2.2 Understanding XAML ........................................................................................ 34 Extensible Markup Languages ........................................................................... 35 XAML and pages ............................................................................................... 36 2.3 Putting Program Code into an Application ......................................................... 37 Building the Application .................................................................................... 38 Calculating the Result......................................................................................... 38 Events and Programs .......................................................................................... 39 Events in XAML ................................................................................................ 39 Managing Event Properties ................................................................................ 41 Events and XAML .............................................................................................. 42 What We Have Learned .................................................................................................... 42 3 Visual Studio Solution Management 44 3.1 Getting Started with Projects and Solutions ....................................................... 44 Creating a Windows Phone solution................................................................... 47 Running Windows Phone applications ............................................................... 48 3.2 Debugging Programs .......................................................................................... 49 Using the Windows Phone emulator .................................................................. 49 Visual Studio Debugging ................................................................................... 51 Controlling Program Execution .......................................................................... 52 3.3 Performance Tuning ........................................................................................... 54 What We Have Learned .................................................................................................... 54 4 Constructing a program with XAML 56 4.1 Improving the User Experience .......................................................................... 56 Manipulating Element Properties ....................................................................... 56 4.2 Working with XAML text .................................................................................. 59 Configuring a TextBox to use the numeric keyboard ......................................... 59 Displaying a MessageBox .................................................................................. 62 Adding and Using Graphical Assets ................................................................... 63 Adding Images as Items of Content ................................................................... 65 4.3 Using the TextChanged Event ............................................................................ 67 4.4 Managing Application Page Layout ................................................................... 69 Screen Resolution Issues .................................................................................... 72 Programmer’s Point: Test your program on all screen sizes .............................. 73 Using Containers to Layout displays .................................................................. 73 Programmer’s
Recommended publications
  • Here Is Event: Nokia Announced the Lumia Windows Benefit to Both Nokia and Microsoft
    Workplace Service First Cut Number: 2011-FC10 Aragon November 1, 2011 Research Topics: Mobile Issues: What are the trends impacting mobile computing? What are the technologies and architectures that make up a mobile ___________________________________________________________________________________________________________Author: Mike Anderson ecosystem? " " Nokia and Microsoft: Partnership Bears building the much-needed ecosystem, but right First Fruit in Mobile Ecosystem Battle now Windows 7 Phone remains far behind the leaders with apps in its Windows Phone Summary: On October 26th at its Nokia World Marketplace. 2011 event in London, Nokia announced the Lumia 800 and 710, its first smartphones Overall, the main intent of these initial Windows based on Windows Phone 7. Phone 7 products is to establish presence in markets historically loyal to Nokia. There is Event: Nokia announced the Lumia Windows benefit to both Nokia and Microsoft. Nokia Phone-based line of smartphones as the first feature phone users who want smartphone step to replace its own Symbian ecosystem on options now have a viable choice from Nokia, the journey to competing with Apple and and they have them ahead of the 2011 Google. holidays. Microsoft has a partner with solid devices to advance its need for relevance in Analysis: Nokia’s strategy, outlined by new mobile, and the smartphone market. CEO Stephen Elop in February 2011, promised decisive and swift action in replacing its failing Nokia’s Windows Phones will not launch in the Symbian operating system for smartphones U.S. until 2012. Building on its strengths, Nokia with Windows Phone 7 through Nokia’s is launching in Europe first, with more countries partnership with Microsoft.
    [Show full text]
  • Blotch3d User Manual with Just a Few Lines Code You Can Create Real-Time 3D Apps for Multiple Platforms
    Blotch3D User Manual With just a few lines code you can create real-time 3D apps for multiple platforms. QUICK START INTRODUCTION PROJECT STRUCTURE DEVELOPMENT MAKING 3D MODELS DYNAMICALLY CHANGING A SPRITE’S ORIENTATION AND POSITION MATRIX INTERNALS A SHORT GLOSSARY OF 3D GRAPHICS TERMS TROUBLESHOOTING RIGHTS Quick start (This quick start section is for Windows. See below for other platforms, like Android, etc.) 1. Get the installer for the latest release of MonoGame from http://www.monogame.net/downloads/ and run it. (Do NOT get the current development version nor the NuGet package.) 2. Get the Blotch3D repository zip from https://github.com/Blotch3D/Blotch3D and unzip it. 3. Open the Visual Studio solution file. 4. Build and run the example projects. 5. See IntelliSense comments for reference documentation. Introduction Blotch3D is a C# library that vastly simplifies many of the fundamental tasks in development of 3D applications and games. Examples are provided that show how with just a few lines of code you can… • Load standard file types of 3D models as “sprites” and display and move them in 3D with real- time performance. • Set a model’s material, texture, and how it responds to lighting. • Load textures from standard image files. • Show 2D and in-world (as a texture) text in any font, size, color, etc. at any 2D or 3D position, and make text follow a sprite in 2D or 3D. • Attach sprites to other sprites to create associated structures of sprite trees as large as you want. Child sprite orientation and position is relative to its parent sprite’s orientation and position, and can be changed dynamically.
    [Show full text]
  • Chapter # 1 Introduction
    Chapter # 1 Introduction Mobile applications (apps) have been gaining rising popularity dueto the advances in mobile technologies and the large increase in the number of mobile users. Consequently, several app distribution platforms, which provide a new way for developing, downloading, and updating software applications in modern mobile devices, have recently emerged. To better understand the download patterns, popularity trends, and development strategies in this rapidly evolving mobile app ecosystem, we systematically monitored and analyzed four popular third-party Android app marketplaces. Our study focuses on measuring, analyzing, and modeling the app popularity distribution, and explores how pricing and revenue strategies affect app popularity and developers’ income. Our results indicate that unlike web and peer-to-peer file sharing workloads, the app popularity distribution deviates from commonly observed Zipf-like models. We verify that these deviations can be mainly attributed to a new download pattern, to which we refer as the clustering effect. We validate the existence of this effect by revealing a strong temporal affinity of user downloads to app categories. Based on these observations, we propose a new formal clustering model for the distribution of app downloads, and demonstrate that it closely fits measured data. Moreover, we observe that paid apps follow a different popularity distribution than free apps, and show how free apps with an ad-based revenue strategy may result in higher financial benefits than paid apps. We believe that this study can be useful to appstore designers for improving content delivery and recommendation systems, as well as to app developers for selecting proper pricing policies to increase their income.
    [Show full text]
  • Microsoft'sevolving App Strategy
    CAN MICROSOFT MAP THE FUTURE OF IT? Microsoft’s Evolving App Strategy Microsoft is trying to better align its applications through a new interface and improved cloud connectivity. Is this the right strategy? BY BRIEN M. POSEY THE NEW INTERFACE WHERE RT AND OFFICE FIT CLOUD CONNECTIVITY CAN MICROSOFT MAP THE FUTURE OF IT? VER THE PAST two decades, Microsoft’s strategy for desktop and mobile ap- plications has remained relatively static. Microsoft devoted much of its energy to creating operating systems and allowed applications to develop almost as an afterthought. THE NEW Even today the company adheres to this haphazard approach to applications. INTERFACE O At the same time, the company’s most recent product-release cycle demonstrates that Microsoft’s support for desktop and mobile apps is evolving. WHERE RT AND OFFICE FIT When it comes to application support in the company’s latest releases, two major themes have emerged: the new tile-based user interface (UI) and cloud con- nectivity. While both of these technologies benefit a segment of Microsoft’s cus- CLOUD CONNECTIVITY tomer base, they have also created numerous challenges for IT professionals. In particular, the new Windows 8 interface has been an impediment to adop- tion among business users, but it is part of a concerted effort on Microsoft’s part to build consistency throughout its application set. Despite this imperfect strat- egy, there are signs that the approach is pointing Microsoft in a direction that al- lows business users to productively use Windows, Office and other applications on PCs, tablets and smartphones. 2 MICROSOFT’S EVOLVING APP STRATEGY THE NEW INTERFACE WINDOWS’ NEW INTERFACE The most well-known element of the Windows 8 operating system is the new user interface (which at one time was called the Metro interface and is now known as the Windows 8-style UI).
    [Show full text]
  • Download Play Store Nokia Lumia 520
    Download play store nokia lumia 520 LINK TO DOWNLOAD 11/1/ · HOW To download play store on my Lumia This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. Apps Store: All In One App - Your Play Store AppApp Store: All in one app - Your Play store App: save-mobile RAM, memory, time. Free. How to Install apps - Download apps from the::Windows Phone Store:: Nokia / Lumia / Install apps Nokia Lumia Install apps - Nokia Lumia 1 Before you start Before downloading and installing apps on your Lumia, your Microsoft account must be activated. Nokia Lumia PC suite is going to be download from this page. Here is the solution to connect your Nokia Lumia to PC via USB data cable on your windows XP sp3,7,8,10 and Vista on the go. This is the best alternative to Nokia Ovi suite for Lumia which is enabling you to perform various tasks of your device model above mentioned very smartly. Download this app from Microsoft Store for Windows 10 Mobile, Windows Phone , Windows Phone 8. See screenshots, read the latest customer reviews, and compare ratings for Lumia Play to. Cómo instalar Google Play Store en el Nokia Lumia todo lo que debes saber si de verdad quieres encontrar una solución a este problema. 15/6/ · The Google Play Store Whether it is an application to root the Nokia Lumia , an app to generate a backup of the Nokia Lumia , or any other type of app, the procedure is generally the same.
    [Show full text]
  • Mobile Developer's Guide to the Galaxy
    Don’t Panic MOBILE DEVELOPER’S GUIDE TO THE GALAXY U PD A TE D & EX TE ND 12th ED EDITION published by: Services and Tools for All Mobile Platforms Enough Software GmbH + Co. KG Sögestrasse 70 28195 Bremen Germany www.enough.de Please send your feedback, questions or sponsorship requests to: [email protected] Follow us on Twitter: @enoughsoftware 12th Edition February 2013 This Developer Guide is licensed under the Creative Commons Some Rights Reserved License. Editors: Marco Tabor (Enough Software) Julian Harty Izabella Balce Art Direction and Design by Andrej Balaz (Enough Software) Mobile Developer’s Guide Contents I Prologue 1 The Galaxy of Mobile: An Introduction 1 Topology: Form Factors and Usage Patterns 2 Star Formation: Creating a Mobile Service 6 The Universe of Mobile Operating Systems 12 About Time and Space 12 Lost in Space 14 Conceptional Design For Mobile 14 Capturing The Idea 16 Designing User Experience 22 Android 22 The Ecosystem 24 Prerequisites 25 Implementation 28 Testing 30 Building 30 Signing 31 Distribution 32 Monetization 34 BlackBerry Java Apps 34 The Ecosystem 35 Prerequisites 36 Implementation 38 Testing 39 Signing 39 Distribution 40 Learn More 42 BlackBerry 10 42 The Ecosystem 43 Development 51 Testing 51 Signing 52 Distribution 54 iOS 54 The Ecosystem 55 Technology Overview 57 Testing & Debugging 59 Learn More 62 Java ME (J2ME) 62 The Ecosystem 63 Prerequisites 64 Implementation 67 Testing 68 Porting 70 Signing 71 Distribution 72 Learn More 4 75 Windows Phone 75 The Ecosystem 76 Implementation 82 Testing
    [Show full text]
  • Models Step 1: Identify Which Version of the Windows Phone Operating
    Nokia Lumia – All Models (Excluding models 710 and 800) Step 1: Identify which version of the Windows Phone operating system is installed on your phone: 1. Go to your App list. 2. From there, tap “Settings” > “About” > “More info”. 3. The “Software” section indicates which version of the Windows Phone operating system is in use. a. If your phone is currently running Windows Phone 7, proceed to page 2 for instructions on how to wipe your device. b. If your phone is currently running Windows Phone 8, 8.1, or 10, proceed to page 3 for instructions on how to wipe your device. ______________________________________________________________________________ Nokia Lumia - Tous les modèles (À l'exclusion des modèles 710 et 800) Étape 1: Déterminer la version du système d'exploitation Windows Phone installée sur votre téléphone: 1. Accédez à votre liste d’applications. 2. Presse « Paramètres » > « À propos » > « Plus d'info ». 3. La section « Logiciel » indique le nom de la version du système d'exploitation Windows Phone. a. Si votre téléphone utilise actuellement Windows Phone 7, aller à la page 2 pour obtenir des instructions sur la façon de réinitialiser votre téléphone. b. Si votre téléphone utilise actuellement Windows Phone 8, 8.1, ou 10, aller à la page 4 pour obtenir des instructions sur la façon de réinitialiser votre téléphone. Nokia Lumia (Windows 7.5) Model Numbers: 610, 900 The following instruction will give you all the information you need to remove your personal information from your phone. Before recycling your device please also remember to: The account for the device has been fully paid and service has been deactivated.
    [Show full text]
  • Of Mobile Devices: a Survey on Network Traffic Analysis
    1 The Dark Side(-Channel) of Mobile Devices: A Survey on Network Traffic Analysis Mauro Conti, Senior Member, IEEE, QianQian Li, Alberto Maragno, and Riccardo Spolaor*, Member, IEEE. Abstract—In recent years, mobile devices (e.g., smartphones elements enable both smartphones and tablets to have the and tablets) have met an increasing commercial success and same functionalities typically offered by laptops and desktop have become a fundamental element of the everyday life for computers. billions of people all around the world. Mobile devices are used not only for traditional communication activities (e.g., voice According to the statistics reported in [1], smartphone calls and messages) but also for more advanced tasks made users were 25:3% of the global population in 2015, and this possible by an enormous amount of multi-purpose applications percentage is expected to grow till 37% in 2020. Similarly, the (e.g., finance, gaming, and shopping). As a result, those devices statistics about tablets reported in [2] indicate a global penetra- generate a significant network traffic (a consistent part of the overall Internet traffic). For this reason, the research community tion of 13:8% in 2015, expected to reach 19:2% in 2020. The has been investigating security and privacy issues that are related driving forces of this tremendous success are the ubiquitous to the network traffic generated by mobile devices, which could Internet connectivity, thanks to the worldwide deployment of be analyzed to obtain information useful for a variety of goals cellular and Wi-Fi networks, and a large number of apps (ranging from fine-grained user profiling to device security and available in the official (and unofficial) marketplaces.
    [Show full text]
  • Defendant Apple Inc.'S Proposed Findings of Fact and Conclusions Of
    Case 4:20-cv-05640-YGR Document 410 Filed 04/08/21 Page 1 of 325 1 THEODORE J. BOUTROUS JR., SBN 132099 MARK A. PERRY, SBN 212532 [email protected] [email protected] 2 RICHARD J. DOREN, SBN 124666 CYNTHIA E. RICHMAN (D.C. Bar No. [email protected] 492089; pro hac vice) 3 DANIEL G. SWANSON, SBN 116556 [email protected] [email protected] GIBSON, DUNN & CRUTCHER LLP 4 JAY P. SRINIVASAN, SBN 181471 1050 Connecticut Avenue, N.W. [email protected] Washington, DC 20036 5 GIBSON, DUNN & CRUTCHER LLP Telephone: 202.955.8500 333 South Grand Avenue Facsimile: 202.467.0539 6 Los Angeles, CA 90071 Telephone: 213.229.7000 ETHAN DETTMER, SBN 196046 7 Facsimile: 213.229.7520 [email protected] ELI M. LAZARUS, SBN 284082 8 VERONICA S. MOYÉ (Texas Bar No. [email protected] 24000092; pro hac vice) GIBSON, DUNN & CRUTCHER LLP 9 [email protected] 555 Mission Street GIBSON, DUNN & CRUTCHER LLP San Francisco, CA 94105 10 2100 McKinney Avenue, Suite 1100 Telephone: 415.393.8200 Dallas, TX 75201 Facsimile: 415.393.8306 11 Telephone: 214.698.3100 Facsimile: 214.571.2900 Attorneys for Defendant APPLE INC. 12 13 14 15 UNITED STATES DISTRICT COURT 16 FOR THE NORTHERN DISTRICT OF CALIFORNIA 17 OAKLAND DIVISION 18 19 EPIC GAMES, INC., Case No. 4:20-cv-05640-YGR 20 Plaintiff, Counter- DEFENDANT APPLE INC.’S PROPOSED defendant FINDINGS OF FACT AND CONCLUSIONS 21 OF LAW v. 22 APPLE INC., The Honorable Yvonne Gonzalez Rogers 23 Defendant, 24 Counterclaimant. Trial: May 3, 2021 25 26 27 28 Gibson, Dunn & Crutcher LLP DEFENDANT APPLE INC.’S PROPOSED FINDINGS OF FACT AND CONCLUSIONS OF LAW, 4:20-cv-05640- YGR Case 4:20-cv-05640-YGR Document 410 Filed 04/08/21 Page 2 of 325 1 Apple Inc.
    [Show full text]
  • Best Practices in Mobile Application Testing
    Innovate, Digitize, Transform BEST PRACTICES IN MOBILE APPLICATION TESTING The basic frame of software testers’ mind-set is attuned to check documentation, functionality, stability, API and performance and make sure that the software application is secure from all vulnerabilities and check for any other related things surrounding the software piece of code. However, mobile application testing adds a different dimension to the traditional software testing in the sense that the testers have to think about the mobile functions based on usage patterns, heterogeneous devices available in the market with different screen sizes and form factors adds to the complexity of the mobile testing. This whitepaper talks about the best practices that exist at ACL Digital pertaining to mobile application testing focusing on mobile apps for iPhone, Android, Windows Phone and mobile web apps. These practices have evolved over a period of time with our experience in working with global top enterprises and ISVs that improved the testing activities and provided a quick turnaround time reducing the cycle time. Functional Testing Every new feature developed for a mobile device needs to be thoroughly tested. Functional testing is an important aspect when it comes to mobile app testing. Based on the developed test cases, mobile testers should do manual and automated testing. At the beginning of the test phase, a tester must test the mobile app manually using “black box” strategy to see if the functionality provided matches to customer expectations and work as designed. Besides traditional software testing defined in text books, like clicking a button, submitting a form, playing around with different screen elements, mobile testers must perform more functional and device-specific testing.
    [Show full text]
  • UI Design and Interaction Guide for Windows Phone 7
    UI Design and Interaction Guide 7 for Windows Phone 7 July 2010 Version 2.0 UI Design and Interaction Guide for Windows Phone 7 July 2010 Version 2.0 This is pre-release documentation and is subject to change in future releases. This document supports a preliminary release of a software product that may be changed substantially prior to final commercial release. This docu- ment is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information in this document, including URL and other Internet Web site references, is subject to change without notice. The entire risk of the use or the results from the use of this document remains with the user. Unless otherwise noted, the companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted in examples herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this docu- ment. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.
    [Show full text]
  • Microsoft Pushes for New Image with Windows Phone 8 Release 2 November 2012, by Janet I
    Microsoft pushes for new image with Windows Phone 8 release 2 November 2012, by Janet I. Tu the culmination of these efforts. ... (It) is the most personal smartphone out there." Executives also stressed how Windows Phone 8, along with other Microsoft devices and services, can make users' lives easier by tying in smoothly with the company's cloud services, products and entertainment offerings such as SkyDrive, Office and Xbox Music and Video. "We brought the best of Microsoft to all Windows 8 devices," Ballmer said. Microsoft needs to get that message across, and to generate excitement for Windows Phone 8 among consumers because it's fallen far behind in the smartphone market. Only three years ago, Microsoft's Windows Mobile It wasn't hard to tell whom Microsoft was trying to platform - which has since been phased out - held win over with its Windows Phone 8 launch event about 20 percent of the U.S. smartphone market. Monday. These days, Microsoft's smartphone platform - Microsoft transformed an area of a civic-center including both the outdated Windows Mobile and auditorium into a temporary swanky, chill lounge, Windows Phone - makes up about 3.6 percent of complete with mood lighting and lit wall panels that market. echoing Windows Phone's live tile colors. As part of the effort to reverse that slide, Microsoft Also, Jessica Alba showed up. executives at Monday's event presented their cases for why Windows Phone 8 is different, and better, It all added up to some words not commonly than its competitors. associated with Microsoft: fun and cool.
    [Show full text]