WP7: How to show a toast? - windows-phone-7

I trying to use ShellToast as analog of the Android toast notification (without redirect). In one of examples:
new ShellToast(){
Content = "HerContent",
Title = "MyTitle",
NavigationUri = new Uri("/Tits.xaml?size=" + 4, UriKind.Relative)
}.Show();
Looks good.
But the toast will not be showed in my emulator. My code is wrong, or it's problem of emulation? The emulator runs in a restricted mode: my graphics card is old

You can show ShellToast only from Background Agent. If you trying to show it from foreground app, use Coding4Fun ToastPrompt control for this

U need to have DirectX 10 capable graphics card with a WDDM 1.1 driver
then emulator will work fine..

Related

UWP windows 10 store and windows 10 mobile store

I am building an application targeting windows 10 desktop and mobile both some functionality like back button functionality is different for each device mobile device use hardware back button while desktop use title bar back button option
do i have to make 2 different projects for each of device ?
No, you can have just one. Originally the back button handling on phone was done separately using the Mobile Extension SDK, but in later builds before the final release of Windows 10 this back button handling was refactored to be universal for all device families, although the back button is displayed on a different place in each.
Basically the only thing you need is to wire up the event globally:
Windows.UI.Core.SystemNavigationManager.GetForCurrentView().BackRequested +=
App_BackRequested;
To learn more, see the official MSDN documentation.

Activate the back camera on WP8 Device

I'm trying to do something very simple: implement a program that activates the back camera of my WP8 device. Could anyone help me do that?
If so you could try using the PhotoCamera class in order to capture images. I'm not pretty sure whether you'll be able to open the native Camera app of the device.
References:
How to access the camera from my Windows Phone 8 app (XAML and C#) and save the taken picture in a determined folder?
Sample from MSDN
Minimal Camera app in Windows Phone

Error with Windows Phone Emulator

I am trying to get my windows phone development up and running again.
I am having serious issues with the emulator where it looks like this http://imgur.com/qM4uj
Here is my info. Running windows 8 on a computer with quad core proc and good video card.
Any ideas?
Thanks!
This page might help:
http://social.msdn.microsoft.com/Forums/en-US/wptools/thread/5b659eea-9a4f-45ce-8418-b9097d586197/
Emulator Video appears corrupted running XNA or Silverlight + XNA
game. The emulator images included in Windows Phone SDK 7.1.1 have a
compatability problem with some video cards or video card drivers. The
problem appears as corrupted display when using the XNA graphics
rendering engine in landscape orientation when system tray is visible.
To work around this problem: XNA games should either set the
orientation to portrait:
graphicsDeviceManager.SupportedOrientations = DisplayOrientation.Portrait;
-or- enable full screen mode:
graphicsDeviceManager.IsFullScreen = true;
Silverlight + XNA games which use landscape page orientation should
disable the system tray:
<phone:PhoneApplicationPage
SupportedOrientations="Landscape" Orientation="LandscapeLeft"
shell:SystemTray.IsVisible="False"

Show UVC windows phone 7

Good day all.
Can i show/hide UVC (Universal Volume Control) from my code?
Maybe any API, for example Device.ShowUVC() ?
Up to Windows Phone Mango SDK, you cannot ask the OS to show the volume control UI through code.
You can have some action on this UI through Microsoft.Phone.BackgroundAudio namespace, when your app play sound in background (ie. set if the UI show play/pause/shuffle buttons via EnabledPlayerControls enumeration).

drop down notification area in windows phone 7

I am working on an application in windows phone 7.And I want to whether we can pro grammatically assign our own application icons in windows phones 7 's notification area.
And will microsoft bring drop down notification area like functionality in wp7 as we have
in android ,blackberry etc in the coming months.
No you cannot put your notification icons in the notification area. Instead you can use live tiles for that.
And as per the latest information ,in their next release Tango, they do not have any plans

Resources