Live Tiles in Windows Phone 7 - c#

Is it possible in visual studio for windows phone / C# that we can configure the application tile only.
That is ..
No Maain Page.xaml or anything.
The tile will keep on changing its background with every second of time.
Or on clicking it just a phone function will be Activated/Deactivated. (eg Bluetooth)
Please Help,
Thank you.

No this is not possible.
Tiles always open a specific page in your app. if you leave the page the default page will be opened.
Also changing the background or updating the tile can be done in a background agent at a maximum amount of once every 30 minutes.
More info on live tiles
Take a look at the "Connectivity shortcuts" app in the marketplace. they do link to specific settings screens but they can not switch the value by clicking it.

Related

How to periodically update live tile locally on Windows 10

I didn't find a suitable documentation from Microsoft to update periodically a tile from the application and not a server. The documentation said that you can update an application tile periodically, but you need to give a URI as the first parameter.
I want to display on the tile information about some items in the application, like the Photos application (but I think Microsoft uses a server for that).
Did someone come with a solution for that?
Thanks.

Desktop Integration in Universal Windows App

Im trying to develop an app for Windows 10 which I hope to submit to the store. I want to get access to the Taskbar APIs so I can set the progress level (green bar behind the process text).
In Windows 7 I used the some of these APIs:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd391692(v=vs.85).aspx
They were wrapped by this handy library which I used in my C# app:
http://blogs.microsoft.co.il/sasha/2009/02/12/windows-7-taskbar-apis/
I cant find the equvilant for UWA Desktop Extension, Any ideas?
Mike
Basically the images are comes from the app asserts, see this: Guidelines for app assets Target-based assets session for more information. The asserts are the read-only stuff and we cannot programmatically change from the code, which means we cannot create the animation on taskbar.
The APIs like ITaskbarList3 are not available in Windows Universal App.
Basically base on my understanding, Microsoft wants to use push notification/live tile also badge to deliver the current state like current progress.

Metro App Pin/Unpin to Start screen

How do I pin/unpin an application to the Windows 8 start screen using C#?
You can pin secondary tiles to the start screen via RequestCreateAsync (or one of its variants), but this step requires user approval.
If you mean create the main tile for an application that's listed in All apps, but perhaps the user had previously opted to remove the tile from the Start Screen, AFAIK there's no equivalent API for that, and it would occur only through the user opting to do so via the Start Screen UI.

Change the shape of default tile in windows 8

In windows 8 when we build our application and check it in simulator then tiles are created in default shape of square , I want to have a rectangle tile for my application like the "video" tile on the start page . Is there a way i can manage this
Thanks
It just takes a few steps to do this:
Add a 310x150 pixel image to your project
Open your app's "Package.appxmanifest"
In the "Tile" section, set the "Wide logo" to point that image
The app will then use the wide tile by default when first installed, but keep in mind that the user can ultimately decide whether the wide or square tile is shown. (You can't control the choice programmatically - except I suppose by not offering a wide tile at all.)
For more, see:
Quickstart: Creating a default tile using the Microsoft Visual Studio manifest editor
Choosing your app images
DefaultTile

Windows Phone 7 Live Tile Push Notifcations?

I'm not grasping the idea behind Windows Phone 7 live tile push notifications.
How do you have 2 projects (one in Visual Studio - C#, the other in Visual Studio - Web Developer) and they work together?
I am trying to create an application that stays active even when the user puts it in deactive state as it needs to stay constantly connected to there e-mail account.
how would I put all of this push notification code into one project? Or do I not need to?
Any help is greatly appreciated, thanks.
Edit:
What I wish to do after diving a little further into this is locally push notifications to the tiles, I don't need to go to a server, when the application updates itsself I want to be able to push a notification to the live tile if they got a new e-mail.
Is there anyway I can do this?
In Mango, you can change Live Tile information using the ShellTile class:
ShellTile tile = ShellTile.ActiveTiles.FirstOrDefault();
// The first tile is the application tile.
// I'm not sure if it will be there if you application is not pinned
if (tile != null)
{
tile.Update(new StandardShellTileData
{
Title = "New Tile Title!",
Count = 50
});
}
Oddly, it doesn't appear that you can access the current shell tile properties (at least not from what I can see).
MSDN has a full list of StandardShellTileData properties that can be set.
Take a look at the link, it's from Mix and shows exactly how to use the new Live Tile API in Mango.
What you want to do, updating the tile locally is not possible in the current OS but will be possible in Mango.
Live Tile Mix 11 Demo
Having two projects in the same solution is an issue for how you manage your project.
For Windows Phone 7 push live tiles, it's not required, as the push notification comes from Microsoft's Push Notification Service. So your web project should make a request to MSFT Push Service, which will in turn push the livetile to your phone.
Your app should just register for a Tile Notification Channel.
This should be changing for Mango, however.

Categories