I build a tile image dynamically when the user presses the tile button in my application. But if the user clicks on pin to start from outside, how can I catch it and create a dynamic tile image? Is it possible or do I have to use a background agent?
There is no way to be notified that the user has pinned you to the Start screen until your code runs, either via Background Agent or regular App launch (at which point you simply query for your pinned tiles).
Related
I am new to Windows Phone 8 application development and I am creating an application for setting alarm. I have created it and scheduled some alarms . It shows default alarm window with "Dismiss" and "Snooze" buttons. Can I have the provision to override the dismiss and snooze button events from my application. Or can I start my application which set the alarm when the alarm fires? Is anybody knows the answer please help me.
I guess there is no such way to override these buttons for an alarm. But if you are going to use a reminder then you will be able specify a relative navigation URI, and when an user taps on the reminder pop up you could redirect the user to your app.
For more refer here
http://www.geekchamp.com/articles/getting-started-with-windows-phone-alarms
Hope it helps!
You can not Override that butttons but you can have events that are fired when alarm popup opens or dismissed.
Inside your App.Xaml.cs, you can subscribe to the Obscured and Unobscured events of your RootFrame.
RootFrame.Obscured += new EventHandler<ObscuredEventArgs>(RootFrame_Obscured);
RootFrame.Unobscured += new EventHandler(RootFrame_Unobscured);
When the alarm pops up, RootFrame_Unobscured will be fired; after you dismiss it, RootFrame_Obscured will be fired.
I'm working on a WP8 app that will utilize the camera for a feature. I've read that, as of GDR2, you can now change which app opens with the camera button, but:
it appears that an app needs to be specially written to be used like
this; not every photo or camera app can be configured to launch when
you press the Camera button.
Question: What do I need to do in my app for it to become an available option in the "Pressing the camera button opens: " drop down when navigating to Settings -> Applications -> photos + camera?
Additionally, part 2 of this question would be (if part 1 is possible), when the application is launching, can I determine if the user opened it via the camera button (so that I could go straight to my camera feature)?
I've seen this article but it only describes how to use and handle the shutter button, it doesn't mention how to allow this button to open the app.
Has anyone been able to accomplish this?
This thread (http://forums.wpcentral.com/windows-phone-8/234751-changing-default-camera-app.html) seems to suggest that only manufacturers can create apps that can do this. Not sure if it's definite, but I've never heard of a 3rd party camera app that can do more than register as a lens.
I have a simple lap counter app and is it possible to:
Have a secondary tile that displays the lap count and when clicked updates the count, but stays on the start screen. I do not want the users to have to navigate to my app then click a button to update the count then navigate back to the start screen.
Can I just have the secondary tile run some code to update itself and either leave the user at the start screen or return them quickly to the start screen (as if they never left)?
You dont have control on what happens after user clicks on secondary tile.
Once secondary tile is clicked, it launches the app. You cant avoid that.
You can close the app, after incrementing the count programatically.
Application.Current.Terminate();
Thanks
My app has a background agent, if it reach a certain condition, it could unscheduled show a ShellToast.
Now my question is that, can I see the ShellToast if my app is always in foreground?
Nope. Taken from the MSDN page for ShellToast:
While the ShellToast.Show method can be called from any application, a
toast will not be displayed if the current foreground application is
the caller of the ShellToast.Show method. This means that this should
primarily be used by a background agent.
I am wondering if it is possible to find what image was displayed to the user when they pressed the live tile to launch the application. I know how to tell what live tile was pressed, just not what image was displayed.
No, it's not. You should pin multiple tiles if you want a selective behaviour.