Category: Windows Phone Dev
-
Accessing Pictures from Media Library in Windows Phone
You may come across a requirement to access the entire picture saved in Media Library of Windows Phone. Media Library can be access using MediaLibrary class. To work with MediaLibrary class you need to add reference of Microsoft.Xna.Framework. This class is defined in namespace Microsoft.Xna.Framework.Media namespace. To work with MediaLibrary, you need to make instance…
-
Code to send game invite to multiple user in Windows Phone
You can send game invite to multiple users in Windows Phone using GameInviteTask chooser. GameInviteTask chooser is used to send invitation to other users in multi-player game. It provides an invite screen to user where they can configure Email address of other users to send game invitation. Invitation will be sent by GameInviteTask chooser is…
-
Launchers related to MarketPlace in Windows Phone
In this post we will discuss three important launchers related to Windows Phone Market Place MarketPlaceHubTask launcher MarketPlaceReviewTask launcher MarketPlaceDetailTask launcher MarketPlaceHubTask launcher This is used to launch Windows Phone Market Place client application. You can launch market place client application along with music content as below, You can set content type of the search…
-
WebBrowserTask and MediaPlayerLauncher in Windows Phone
In this post, we will see WebBrowserTask launcher and MediaPlayer launcher. WebBrowserTask launcher launches web browser application and display specified URL. This is defined as below, You can set target URL either as string or as Uri. User will be asked for the confirmation. You can navigate to a URL as below, On running you…
-
Code to search location on Bing Map
BingMapTask launcher is used to search a location and mark it on the Bing map. It is defined as below, Search term need to be set as string. If geo coordinate of center is not provided then BingMapTask will search a location on basis of user’s current location. Hospitals can be located and marked on…
-
MarketPlaceSearchTask in Windows Phone
MarketPlaceSearch Task launcher is used to launch Marketplace client application with the searched result set in the criteria. It helps to search to marketplace from the application. MarketPLaceSearchTask is defined as below, You can see in the definition that, you can set MarketplaceContentType and SearchTerms. MarketPlaceContentType is defined as below, So it can take either…
-
Clipboard API in Windows Phone
In this post we will see Clipboard API support in Windows Phone. Clipboard API support came as part of Windows Phone 7.5 and it was not part of Windows Phone 7. Class is defined in System.Windows namespace as below, You can set text as below, In above snippet txtSource is a text box. You can…
-
Code to Share Status or Links on Social Media sites in Windows Phone
While creating application for Windows Phone you may come across requirement to share certain message from your application on social media sites configured on user device. You can do it using ShareStaus Task. ShareStausTask class is defined as below. It is inherited from ShareTaskBase class. ShareStatus Task Launcher allows an application to launch a…
-
How to Use the ConnectionSettings Task for Windows Phone
ConnectionSettings Task allows user to set and adjust device network settings. ConnectionSettings task is defined in Microsoft.Phone.Tasks namespace as below, User can set device network setting to any of the following If you want to set Network connection setting to WiFi, you can set it as below, If you want to set Network connection setting…