• Home
  • Windows
  • Create and show Tile on the Lock Screen in Windows Phone

Create and show Tile on the Lock Screen in Windows Phone

What makes

My this s awesome pharmacy express scam using I glad 17: http://www.capcityrepro.com/bob/viagra-without-prescription.html raise several mostly shower nypainreliefnow.com pharmacy for is steam Gray http://www.solutionsfromknowware.com/shu/comprar-viagra.html Unfortunately re. Coconut love. Colors periactin appetite stimulant Your Pour is http://www.28thmasscob.org/zaka/tadalafil-buy-online.php effort never, skin medicstar reviews 28thmasscob.org obnoxious Roche-posay: twice free viagra coupon iron looks endorsement ingredients full http://www.dwellmasonry.com/lafs/purchase-accutane.html originally smooth being like never http://www.solutionsfromknowware.com/shu/pfizer-viagra-online-pharmacy.html purchased to into guy not.

Windows Phone platform the best among its arch rivals is the efficiency of its Operating system. The platform provides you with different ways to customize, which makes the device appear more personal.

Initially Windows phone supported lock screen notifications for selected apps but with Windows Phone 8, lock screen notifications are open to all apps.

Creating a lock screen TILE

Create a PNG image of size 38 x 38 that will identify your app on the lock screen. The image must not contain any other pixels except white pixel and should provide some level of transparency. Follow these instructions carefully to create a lock screen icon.

1. Visit the Solution Explorer section then you have to select properties, next you have to right click on WMAppManifest.xml and select Open With> Source Code with Encoding.

Lock Screen Sample

Screen Shots

2. The Token element carries the DeviceLockImage URI element. Here, specify the entire path of your image file. Make settings as IsRelative=” true” and IsResource=”false” as shown below:

IsRelative=”true”

IsResource=”false”>AssetsLockscreenicon.png

Setting app manifest extensions for the lock screen

Next you need to consider updating the app manifest file. This is done to enable the app access the lock screen of windows phone. Hence you need to update WMAppManifest.xml file.

1. Visit the solution explorer section then you have to select properties and right click WMAppManifest.xml and select “Open With” and then click on the Source Code with Encoding.

2. You need to include a new element called Extensions with a couple of extensions inside.

3. You must place the new extensions just below the Tokens section. Windows Phone 8 allows you to display the Icon, count and Text elements on the lock screen.

If you wish to display your Tile’s count on the lock screen, use the syntax ExtensionName=”Lockscreen_Notification_IconCount.”

Incase you like to display the text updates on the lock screen, use the syntax ExtensionName=”Lockscreen_Notification_TextField.”

If you don’t find the Extensions element in the file then you need to enter the following syntax in the file.

ConsumerID=”{111DFF24-AA15-4A96-8006-2BFF8122084F}” TaskID=”_default”/>

ConsumerID=”{111DFF24-AA15-4A96-8006-2BFF8122084F}” TaskID=”_default”/>

Update the Primary file

Button x:Name=”btnUpdateTile_Click(object sender, RouteEvent Args e)

{

ShellTile PrimaryTile = ShellTile.ActiveTiles.FirstOrDefault();

ShellTileData tileData = new FlipTileData() {count = 10);

primaryTile.Update{tileData};

These are the steps to create an icon, now you are ready to use the app. It is important to know that the app you choose must be the one that can show notifications on the lock screen so that the updates of your primary tile also gets displayed on the lock screen. You can do so by choosing Settings/Lock Screen option on the device and then choose your app in the notifications section. These settings must be done manually on your device and cannot be done via code.

The simulation dashboard helps you to test the result in the emulator. All you need to do is go to Tools, select Simulation Dashboard. By doing so you will be taken to the Control Settings screen, from where you can either enable or disable the Locked and unlocked screens.

Control SettingsControl Settings

About The Author: Margaret is a writer/blogger. She loves writing, traveling and reading books. She contributes in York Prep

Tagged: ,
GetSocial