This article explains how to create a basic Windows Phone app, how to test it on a device and the main feature is how to put it on the Marketplace.
- Create your first app
- Test the app on phone
- Put it on the marketplace
Download the Windows Phone SDK 8.0, that includes all the tools you need to create Windows Phone apps.
Microsoft Visual Studio Express 2012 for Windows Phone
Create a developer account at the Microsoft developer center where you need to provide your App details, you can use your Microsoft account.
Create your First App
Use the following procedure to create the demo “Hello World” app:
- Launch Visual Studio from the Windows Start Screen. If the Registration window appears, you can register the product, or you can temporarily dismiss the prompt.
- Create a new project by selecting "File" -> "New" -> "Project...".
- In the New Project window, expand the installed Visual C# or Visual Basic templates, and then select the Windows Phone templates.
- In the list of Windows Phone templates, select the Windows Phone App template.
- At the bottom of the New Project window, type Read feed as the project’s Name.
1. Click "OK". In the New Windows Phone Application dialog box, select Windows Phone OS 8.0 for the Target Windows Phone OS Version.
- When you select Windows Phone OS 8.0 as the target version, your app can only run on Windows Phone 8 devices.
- When you select Windows Phone OS 7.1, your app can run on both Windows Phone OS 7.1 and Windows Phone 8 devices.
Create the UI
The designer displays MainPage.xaml, that contains the user interface for your app.
Add the XAML control in Content panel
Run your application
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<TextBlock Text="Hello World"></TextBlock>
Build the solution by selecting the "Build
" -> "Build Solution
If any errors occur, they’re listed in the Error List window. You can open the Error Listwindow, if it’s not already open, by selecting the "View" -> "Error List". If there are errors, review the steps above, correct any errors, and then build the solution again.
On the Standard toolbar, ensure the deployment target for the app is set to one of the values for the Windows Phone Emulator, for example, Emulator WVGA 512MB.
Run your application on Phone
To run your application on a phone you need to register the phone first.
- You need a Microsoft Account
- Provide a unique name for your device
- Turn on your phone and unlock the phone screen.
- On your phone, ensure that the date and time are correct.
- Connect your phone to your computer using the USB cable that came with your phone.
- On your computer’s Start Screen, switch to All apps view.
- Under Windows Phone SDK 8.0, click Windows Phone Developer Registration.
- Verify that the Status message displays Identified Windows Phone 8 device. Click the "Register" button to unlock the phone.
If your phone is already registered, the Status message indicates this and you see an Unregister button.
- Click "Register".
- In the Sign In dialog box for your Microsoft account (formerly known as a Windows Live ID), enter the email address and password for your Microsoft account. Click "Sign In".
If you’re a registered developer, be sure to use the Microsoft account associated with your developer account.
- After your phone is successfully registered, the Status message displays Congratulations! You have successfully unlocked your Windows Phone.
How to put it on Marketplace (Windows Store)
- Once you are done create your app package (Zipped file).
- Login with your developer account and upload your app.
- After you upload the app package, fill in the remaining two sections, the App Description and the Notes to testers.
- Now you wait for certification. If the app fails compliance testing, you’ll need to fix the issues.
- Resubmit the app. It’s not unusual to fail at certification your first time through.
I hope this article will help you to create your first Windows phone 8 app. Please share your valuable feedback if you like this article .