Testing, Debugging, and Deploying a Mobile App Lesson 8
Exam Objective Matrix Skills/ConceptsMTA Exam Objectives Understanding Windows Phone Marketplace Submission Rules and Requirements Understand design for mobile devices. (3.1) Setting Up a Test EnvironmentWork with developer tools. (3.4) Packaging and Deploying an Application (3 Work with developer tools. (3.4) Testing and Debugging Mobile Applications Work with developer tools. (3.4)
Understanding Windows Phone Marketplace Submission Rules and Requirements Develop apps using documented APIs for the Windows Phone operating system version your app targets. Localize your app in at least one of the languages supported by Windows Phone. Submit an icon for use in the Windows Phone Marketplace catalog listing for your app.
Understanding Windows Phone Marketplace Submission Rules and Requirements Submit one to eight screen shots of key screens of your app. Do not submit an XAP package (which is the package you build and actually upload to Microsoft) that exceeds 225 megabytes (MB). The app package must include a valid Windows Phone application manifest file named WMAppManifest.xml, a valid.NET application manifest file named AppManifest.xml, the assembly files for your app, and required artwork.
The Windows Phone Marketplace App Submission and Certification Process Submit Add Metadata Validate Test and Certify Sign List in Marketplace
Understanding Artwork Specifications Images and icons must meet Microsoft size specifications (see table below) Icons must be non-transparent PNG files Images and IconsPixel SizeFormat Application (that appears in application list) 62 x 62PNG Application Tile173 x 173PNG General application images2000 x 2000 maximum JPG or PNG
Required Artwork for Windows Phone Marketplace Catalog Listing PNG format A mobile app tile icon that measures 99 x 99 pixels in size A large PC app tile icon that measures 200 x 200 pixels in size
Optional App Artwork A large mobile app tile icon that measures 173 x 173 pixels in size for an app’s Windows Phone Marketplace catalog listing Background art for the Background panorama that measures1000 x 800 pixels in size –Must provide background art if app is selected as a featured app in the Marketplace catalog
Setting Up A Test Environment Windows Phone Emulator A physical Windows Phone device Windows Phone Developer Registration tool Zune software Windows Phone Connect Tool Application Deployment tool Windows Phone Capability Detection Tool Windows Phone Marketplace Test Kit Windows Phone Performance Analysis tool
The Windows Phone Developer Registration Window
Packaging and Deploying an Application Debug build Release build XAP file –An archive file of sorts that contains all of the files, including graphic images and icons, needed to run and view an application on a device
Packaging and Deploying an Application (continued) XAP file contains: –At least one assembly related to the code in the app –Additional assemblies (if any) –WMAppManifest.xml file –AppManifest.xaml file
Packaging and Deploying an Application (continued) After generating XAP file, use Application Development tool to copy application to a physical device or to Windows Phone Emulator Physical device must be registered and unlocked –Installing apps to test device referred to as side-loading
The XAP File Along with the Files It Contains XAP file
The Build succeeded Message The message indicates the build was successful
Selecting Windows Phone Device in the Application Deployment Tool
Selecting the XAP File
The WPConnect Folder The x64 and x86 folders
Testing and Debugging Mobile Applications Press F5 key in Visual Studio IDE to detect build errors Test app in Windows Phone Emulator or device to detect runtime errors
Identifying Code Errors Visual Studio IDE Error List window presents information about build errors
The Error List Window Indicates the Build Error that Occurred
The Errors List after Modifying Code in MainPage.xaml.cs to Throw an Error
Evaluating Code Use the Windows Phone Performance Analysis Tool and the Windows Phone Marketplace Test Kit to evaluate code for Marketplace readiness Windows Phone Capability Detection tool can resolve issues with application manifests if app is targeted to Windows Phone OS 7.0
Selecting to Profile Execution Performance Data in the Application
The Results of Profiling
More Information about Profiled Performance Data
The Application Details Results of the Windows Phone MarketPlace Test Kit
Recap Windows Phone Marketplace rules and requirements Test environments Application debugging and testing Application packaging and deployment