Capture Picture from Camera and Save in Media Library in Windows Phone

In this post we will see the way to capture a photo using camera and saving that in Media Library. CameraCaptureTask chooser is used to capture photo using Windows Phone Camera. To work with CameraCaptureTask , first you need add namespace Then define a global variable, In constructor of the page, you need to instantiate … Continue reading Capture Picture from Camera and Save in Media Library in Windows Phone

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 … Continue reading Code to Share Status or Links on Social Media sites in Windows Phone

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 … Continue reading How to Use the ConnectionSettings Task for Windows Phone

Data from Cloud on Windows Phone

“Data from cloud on the phone “, it may appear as a buzzing sentence to you. In this post, I try to minimize complexity of accessing data from cloud to be specific from SQL Azure in Windows Phone. In this post I will walkthrough step by step accessing data from SQL Azure in Windows Phone. … Continue reading Data from Cloud on Windows Phone

Block Diagram on Windows Phone 7 Application Life Cycle Events

Below block diagram depicts the way various events get executed in Windows Phone 7 application lifecycle. Different events are as below. All events are written in App.Xaml.Cs Application Launching Application Activated Application Deactivated Application Closing As a developer it is must to have understanding of sequence of events get executed in Windows Phone 7 application … Continue reading Block Diagram on Windows Phone 7 Application Life Cycle Events

Calling WCF REST Service with Basic authentication from Windows Phone 7

Today while working I came across a requirement to consume a REST Service. To consume REST Service application had to provide username and password. Initially I thought it should be easier task and I tried consuming REST Service as below, In completed event accessing returned data as below, When I tried running application I got … Continue reading Calling WCF REST Service with Basic authentication from Windows Phone 7

How to create Splash Screen with Progress Bar in Windows Phone 7

Idea behind implementation To create SplashScreen with ProgressBar idea is to put a popup visible till start page is ready. Open user control in popup Cut Splash Screen image with dimension 800x460 from the popup Make visible popup till start page of the application is not ready Create User Control Very first you need to … Continue reading How to create Splash Screen with Progress Bar in Windows Phone 7

Code to disable hardware Back Button in Windows Phone 7

You can come across requirement when you need to disable hardware back button in Windows Phone 7. If you want to disable hardware back button on Page1 then you need to override OnBackKeyPress method on Page1. To disable you need to make CancelEventArgs value to cancel as given below, If you want you can display … Continue reading Code to disable hardware Back Button in Windows Phone 7

Code to make call in Windows Phone 7

Launchers are used to perform task provided by phone operating system. Making Call is feature of Windows phone operating system and can be used by Launcher API. PhoneCallTask launcher is used to call. This launcher class is defined as below,   To work with PhoneCallTask, first you need to add namespace of Microsoft.Phone.Task Then create … Continue reading Code to make call in Windows Phone 7