3. The Windows Phone Marketplace The Marketplace is the only way that phone owners can get content onto their phones Programs can be sent over the air to the phone and also loaded via the Zune program The Zune program provides media management on the Windows PC and phone Customers use their Windows Live ID to register their phones and can pay for applications and media 3
4. Deployment Process Develop & Debug Submit& Validate Certify & Sign Windows Phone Application Deployment Service Marketplace
5. Approving applications Before an application or game is released via the Marketplace it must go through an approvals process This ensures that the program will behave correctly Windows Phone Members of the Marketplace can submit applications for approval and receive progress reports on the registration process 5
6. Joining the Marketplace You can register to be a member of the marketplace for $99 per year Students can register for free via Dreamspark Registered developers can submit applications for approval in the marketplace Marketplace members have their identity validated when they join and are allocated a unique digital signature to sign their programs 6
7. Payment Developers can set a price for your application or give it away for free Developers receive 70% of the price paid for the application Payment starts once the developer has earned up to $200 The payment is made by bank transfer 7
8. Free and paid applications A member of the Marketplace can submit up to five “free” applications for approval Phone owners can download these without having to pay for them Additional approvals for further free applications will cost $20 each A member can submit an unlimited number of “paid” applications 8
9. Trial Mode Applications can be published with a “trial” mode which customers can use to check out the application The trial mode version of the program is exactly the same program as the full version, but running in trial mode The trial mode may have missing functionality or be time limited 9
10. Detecting Trial Mode usingMicrosoft.Phone.Marketplace; LicenseInformationinfo = newLicenseInformation();if ( info.IsTrial() ) {// running in trial mode} It is easy for an application to determine whether it is running in Trial mode 10
11. Deploying to the hardware The emulator is a faithful representation of all the software interfaces available to a game However, for play testing of games a real device is required Windows Phone devices as sold do not support the deployment of programs to them Registered developers can unlock devices so that they can be used in this way 11
12. Device unlocking A device can be unlocked using the program supplied with the Windows Phone SDK A registered developer can unlock up to three phones A student developer can unlock only one Registered developers can manage their phone registrations 12
13. The XAP file The XAP file contains all the elements that make up an application Images, sounds other content Program assemblies This file is produced by Visual Studio when the program is built We saw this file when we considered how applications are built 13
14. The XAP file manifest The XAP file contains a manifest that describes the content and the application itself It also lists the phone resources that are required by the application Networking, location, media library etc. The manifest for a new file requests all resources You should remove any resources that you are not actually using 14
15. The full capability list <Capabilities> <CapabilityName="ID_CAP_GAMERSERVICES"/> <CapabilityName="ID_CAP_IDENTITY_DEVICE"/> <CapabilityName="ID_CAP_IDENTITY_USER"/> <CapabilityName="ID_CAP_LOCATION"/> <CapabilityName="ID_CAP_MEDIALIB"/> <CapabilityName="ID_CAP_MICROPHONE"/> <CapabilityName="ID_CAP_NETWORKING"/> <CapabilityName="ID_CAP_PHONEDIALER"/> <CapabilityName="ID_CAP_PUSH_NOTIFICATION"/> <CapabilityName="ID_CAP_SENSORS"/> <CapabilityName="ID_CAP_WEBBROWSERCOMPONENT"/> </Capabilities>
16. Local Application Deployment You can deploy a XAP file directly onto an unlocked device, or the emulator by using the Application Deployment tool This lets you distribute finished applications for test 16
17. Obfuscation If you send someone your XAP file they can use disassemblers and other programs to unpick your assemblies and find out how they work We did this earlier using the ildasm program An obfuscator tool will change the layout and variable names in your code to make it harder to decode the way a program works 17
18. Adding Obfuscation There are a number of tools that will perform this obfuscation for you The Windows Phone Marketplace provides access to one from PreEmptive solutions that is worth a look You should add obfuscation to any program that you make available 18
19. Submission and approval The submission and approval process is managed via the developer site for Windows Phone and XNA http://create.msdn.com There are registration and approval walkthroughs that you can follow to learn how to register and deploy applications 19
20. Certification Guidelines You should download the Windows Phone Certification guidelines from the developer site This gives vital information on application submission 20
21. Summary Windows Phone owners get their applications from the Windows Phone Marketplace Registering as a developer costs $99 per year Students can register for free Developers can produce free or paid applications and can also add a “trial mode” Developers can unlock phone devices so that they can run their programs on them You should obfuscate your code