Tag: Windows Phone
How to Get the Current Location and Pin it on the Map in Windows Phone 8?
Are you looking to find the current location in the Windows Phone using c# and later pin it on to the map? Below is a sample code snippet that demonstrates how to achieve it. How to Get the Current Location and Pin it on the Map in Windows Phone 8? Code to get the Current Location Code to Plot the Location to Map using MapsTask
How to Search for an App by Publisher in Windows Phone Store using URI Scheme from WP8 App?
Below is a sample code snippet demonstrating Search for an App in Windows Phone Store using URI Scheme from WP8 App via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. How to Search for an App by Publisher in Windows Phone Store using URI Scheme from WP8 App?
How to Programatically Create ApplicationBar in Windows Phone ?
Are you looking to create ApplicationBar programmatically at runtime in Windows Phone ? . Below is a sample code snippet that demonstrates how to create Application Bar in Windows Phone 8 . How to Programatically Create ApplicationBar in Windows Phone ? Call this function in the constructor of the page after the InitializeComponent method.
System.Windows.Markup.XamlParseException when using MapControl in Windows Phone 8
When working with the MapControl in Windows Phone 8 , you might receive the following error when the right capabilities for the Map is not set in the Windows Phone Application Manifest file. System.Windows.Markup.XamlParseException when using MapControl in Windows Phone 8 To resolve this error , Open the WMAppmanifest.xml file and the check or enable the ID_CAP_MAP in the capabilities tab.
WP8.1 Dev Guide – Download and Install Windows Phone 8.1 SDK
To get started with the development of windows phone 8.1 apps , the developers should have the Windows Phone 8.1 SDK installed on their system . You can download Visual Studio Express 2013 for Windows , a free tool that lets the developers to create Windows Phone and Windows Store apps, including universal Windows apps targeting all the Windows devices. The tools include the necessary…
How to Terminate an Windows Phone 8 App using C#?
If you want to programmatically terminate the windows phone 8 application , you can use the Application.Terminate() method . How to Terminate an Windows Phone 8 App using C#? When using the Application.Terminate() , the developers should make sure that all the necessary data is saved because , the Application Closing event handler wont be raised in this case.
Grammars available for Speech Apps in Windows Phone SDK
When implementing the speech recognition in the windows phone apps, we should use the predefined grammars to identify if the input is valid or not. There are generally 3 different types of grammars that can be used when implementing speech feature in your Windows Phone app. Grammars available for Speech Apps in Windows Phone SDK Built-In grammars – There are 2 types of built in…
How to Implement Rating Control in Windows Phone 8 App ?
If you are looking to implement the rating control in your windows phone 8 app which lets the users to rate an item within the specified values/stars , here’s an useful control from Windows Phone toolkit called “RatingControl” which can used . <Toolkit:Rating Height=”30″ Grid.Row=”1″ Value=”0.6″ ItemCount=”0″ x:Name=”ctAbundantcodeRating”> You can download Windows Phone Toolkit via NuGet manager from Visual Studio 2012.
How to detect if the Windows Phone App is running in KidsCorner using C#?
Below is a sample code snippet that demonstrates how to detect if the application in Windows Phone is running in Kids Corner using C#? The Windows.Phone.ApplicationModel.ApplicationProfile returns the value Default or Alternate. The default value indicates the normal mode whereas the Alternate indicates the Kids Corner mode. How to detect if the Windows Phone App is running in KidsCorner using C#?
What is Suspension Manager in Windows Phone 8.1 App template ?
When you create a new Windows Phone 8.1 project using the Hub App or Pivot App template , you would notice that it contains a class called “SuspensionManager”. What is Suspension Manager in Windows Phone 8.1 App template ? It is a kind of helper class and provides the necessary properties and methods to load and store the state when the windows phone store app…
Using Web Search Grammars with SpeechRecognizerUI in Windows Phone
The built-in dictation grammar is used for the SpeechRecognizerUI when the grammar is not added to the grammar set of the SpeechRecognizerUI object. Below is a sample code snippet demonstrating how to set and use the Web Search Grammars for recognizing speech. Using Web Search Grammars with SpeechRecognizerUI in Windows Phone
Programmatically Go Back to Previous Page in Windows Phone App
The developers can use the NavigationService.GoBack method to navigate to the previous page of the Windows Phone App. When using the NavigationService.GoBack , it is necessary to check if the Navigation can go back using the property NavigationService.CanGoBack as shown below. Programmatically Go Back to Previous Page in Windows Phone App
mc:Ignorable attribute in Windows Phone XAML Page
When a new Windows Phone Project is created, it creates the MainPage.xaml by default. This page contains the attribute mc:Ignorable=”d” This is an attribute which indicates to the compiler to ignore any other attributes that starts with “d”. For example, the attributes d: DesignHeight or d: DesignWidth is a typical example of the compiler ignoring the height and width attributes. These attributes are only used…
How to Get the Name of the Windows Phone Device which is identified by the remote peers ?
How to Get the Name of the Windows Phone Device which is identified by the remote peers ?
Capabilities needed for Including Speech in the Windows Phone App
The Windows Phone 8 includes several features that supports Speech to be included in your Windows Phone App. In order to include the speech recognition features in the windows phone app, the developers must include 2 capabilities in their windows phone app in the WMAppManifest.xml app manifest file. ID_CAP_SPEECH_RECOGNITION ID_CAP_MICROPHONE Capabilities needed for Including Speech in the Windows Phone App To set these capabilities in…
How to refer to the file in Windows Phone app using ms-appx ?
When using the Speech recognition , you might refer to the Voice Command Definition file within your project . Assuming that the file name is AbundantcodeGrammar.xml . you might refer to the file with the ms-appx as shown below. new Uri(“ms-appx:///AbundantcodeGrammar.xml”,UriKind.RelativeOrAbsolute); When referring to the file at runtime , there are times when you might receive an error 0x80070002 error – The system cannot find…
The Windows Phone Emulator wasn’t able to ensure the virtual machine was running
Today , I encountered the below error when trying to run my windows phone project after upgrading my system from Windows 8 to Windows 8.1 The Error Message was “The Windows Phone Emulator wasn’t able to ensure the virtual machine was running: Something happened while starting a virtual machine:”Emulator WVGA.<Name>” could not initialize(Virtual machine ID <ID>) Not enough memory in the system to start the…
How to create a new Windows Phone app to Connect to Mobile Services in Windows Azure?
This article will explain how the developers can create a new windows phone app which connects to the Windows Azure Mobile Services. How to create a new Windows Phone app to Connect to Mobile Services in Windows Azure? 1. Create a Windows Azure Mobile Services as described in the article How to create a new Windows Azure Mobile Service? 2. Select the created mobile service…
Visual Assets Tab in Package Manifest file
The Visual Assets tab in the package manifest file lets the developers set the characteristics of the application’s title , splash screen and the images used within the application for various scenario. You will be able to specify the splash screen for your Windows Phone and Windows Store separately because the dimensions are different for phone and the tablet app. The Splash screen for the…
How to Detect Windows Phone OS version using C#?
The Windows Phone SDK provides the Environment.OSVersion property which can be used to detect the version of the Operating System uses in Windows Phone (Windows Phone 8 / Windows Phone 7). Below is a code snippet that demonstrates how to detect the Windows Phone OS Version using C#. How to Detect Windows Phone OS version using C#?