Chapter 1: An Introduction to Windows Phone Platform for Android Application Developers 5
The Developer Tools 6
Visual Studio Express 2012 for Windows Phone, an IDE for developers 6
Blend for Visual Studio 2012, a User Interface design tool for designers 6
A Windows Phone emulator to test and debug applications 6
Windows Phone Architecture 7
Comparing the Programming Stack of Windows Phone with the Android Stack 8
1.Portability: This is useful if you are targeting multiple platforms you can write core login in C++. 12
2.Direct3D: If you want to use Direct3D esp. to develop games, you must use C++. 12
3.Performance: For some scenarios, you may achieve higher performance using native code. 12
Summary 18
Related Resources 19
1.Overview of the Windows Phone Application Platform 19
2.Windows Phone team blog. 19
3.Windows Phone Programming: Programming guide and reference documents. 19
4.Visual C# 19
5.XAML for Windows Phone 19
Chapter 2: User Interface Guidelines for the Windows Phone 20
Designing the Application Interface 21
Application User Interface Design 25
Comparing Windows Phone and Android Navigation 35
Windows Phone Frame and Page Structure 36
Application Templates 39
Summary 40
Related Resources 41
Windows Phone User Interface Guidelines 41
Windows Phone SDK ToolsWindows Phone toolkit on Codeplex 41
App page model for Windows Phone 41
In-app navigations for Windows Phone 41
Chapter 3: An introduction to Windows Phone Developer and Designer Tools 42
A Comparison of Android and Windows Phone Tools 43
Visual Studio is not only a powerful IDE but it can also be extended in a variety of ways. It allows the ability to add macros, options, menus and toolbar commands, visualizers and other tools. In addition, Visual Studio supports NuGet, a package manager, to add, remove and manage libraries and tools in Visual Studio and the .NET Framework.Windows Phone tools l 45
Tool for coding 46
Tools for designing 49
Building Application 60
Debugging 62
Summary 67
Chapter 4: An Introduction to C# programming for Java developers 68
Managed Programming 69
A Comparison between C# and Java Features 70
Key features compared 99
100
Chapter 5: Application Lifecycle Differences Between Windows Phone and Android 114
Android and Windows Phone Application Lifecycle 115
Programming for application States and navigation 119
Windows Phone Application LifeCycle 121
Comparing Life-cycle Methods 124
Windows Phone 8 Application LifeCycle and Tombstoning Example 126
Summary 135
Related Resources 136
Chapter 6: Storage on Windows Phone 137
1.Application settings 137
2.Files and folders 137
3.Database 137
IsolateStorageSettings lets you save any serializable object to the settings store. Managing the IsolatedStorage Space 145
Sharing Data Between Applications 146
Content producers 149
Summary 151
Related Resources 152
Chapter 7: XML Support in Windows Phone and Android 153
Traversing XML 163
Summary 166
Related Resources 167
Appendix A: Migration Sample 168
In-App Advertisements 169
1.Add the Microsoft AdControl to your application. Set a couple of properties in the AdControl to identify your app and ad location, and start showing ads in your application. 175
2.Join Windows Phone Dev Center which will allow you to publish your applications to Windows Phone Store. 175
3.Sign up on the Microsoft pubCenter portal and register your application. Register your application, create an ad unit with ad unit and use it with the AdControl. 175
Download the In-App Advertisements Android Sample 183
Advertising in apps for Windows Phone 183
Make Money with the Microsoft Ad Control 183
Microsoft Advertising SDK for Windows Phone 183
API Documentation for Windows Phone Ad SDK on MSDN 183
Appendix B: Using the API Mapping Tool 184
What’s the API Mapping tool 185
How to use the tool 186
Updated all sections for increased clarity. 187
Updated all sections to include most recent data. 187
Added additional reference links. 187
Fixed formatting issues. 187
If you have been developing Android applications and are interested in building your applications for Windows Phone, this guide is for you.
The guide covers what you need to know to add Windows Phone development to your skill set, while leveraging what you have already learned building Android applications.