how to connect rss feed to lock screen windows phone 8?
what's the code and where to put it (like app.xaml or mainpage.cs)
I'm absolute beginner.
There's fairly extensive documentation on setting up lock screen notifications and also on being a lock screen wallpaper provider, on the MSDN website
Related
I wan't to inform the user over some processes (e.g. Login successfully/failed or something else). In Android I used the Toasts Messages to let them show a short time. For WP 8.1 I tried the ToastNotificationManager to get the same results. Unfortunately the wp-toast has an audio signal and it spams the notification center.
I checked the Libs Toastinet and coding4fun toolkit toast, but this libs are WP 8.0 / Silverlight only and I need a solution for WP Runtime 8.1.
You can set which sound to play by setting the audio element in the toast's xaml. This can be set to silent if appropriate.
You can control how your toasts appear in the action center by setting properties on the ToastNotification object or in the X-WNS- headers sent to WNS. This allows grouping, tagging, expiring, removing, etc. See Managing toast notifications in action center (Windows Phone Store apps) on MSDN for details.
That said, if you're talking about notifications during the ordinary running of the app you may not want to use toasts. You may be better off showing warnings and such in-line or in your own screen-top panel (the latter is more important for Windows than Windows Phone, since toasts look quite different on each).
See Guidelines and checklist for toast notifications and Choosing the right UI surfaces: Errors.
I am writing test automation for Windows phone 8.1. After the phone is developer unlocked (to be able to deploy apps), the maximum timeout for keeping the screen unlocked is 5 minutes. The setting is under Settings > Lock Screen > Screen times out after dropdown on the phone.
For Win phone 8.0 there is an option to never time out the screen. My question is, since this seems not to be supported yet by Microsoft, is there some way to keep the phone 8.1 screen active, without having to manually touch it?
If you want to develop an App on your device, you only have to unlocked when you run the project (F5).
Anyway, the screen can be forced to stay on using the UserIdleDetectionMode property of the current PhoneApplicationService.
To disable automatic screen lock:
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
To enable it again:
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Enabled;
More information on MSDN
I need to do reliable streaming of video from a Windows Phone 8 app to a Windows Store app. Currently I am doing this via sockets over Wi-Fi with a wireless router in the middle like this SO solution suggests:
How to stream video from PC to Windows Phone 8 mobile phone through internet
I can no longer use a solution like this because the production environment for the apps will not have a wireless router available so the Windows Phone device will need to talk directly to the Windows Store app running on a laptop or tablet. I've heard of something called Wi-Fi direct but I am having trouble finding the information I need in this context. Here are my questions:
Can I use Wi-Fi direct? If so, is there a decent sample or document that covers my app context of streaming video from a Windows Phone 8 app to a Windows Store app?
If I can't, is Bluetooth reliable enough to stream video smoothly? If so, any examples that show how to do this would be appreciated.
If both are viable solutions, which is the better one using smooth frame rate and reliability as a the criteria for judging?
If I turn the tablet/PC or Windows Phone into a hotspot, would that allow me to establish socket connections from my apps?
Hotspot questions extended. Will the hotspot solution, either phone or tablet/laptop, still work if the device providing the hotspot does not currently have access to a network? For example, if the phone can't access a 3G/4G network, can it still act as a hotspot for the tablet/laptop? I know there won't be Internet/Web access, but can the devices still talk to each other?
I found this SO post on Wi-Fi direct but it covers Android:
Wi-Fi Direct technology
I found this SO post on Bluetooth streaming but it covers Android and iOS:
Bluetooth video streaming in WiFiCameraApp
Would turning my laptop/tablet running the Windows Store app into a hot-spot work for my context?:
http://community.spiceworks.com/how_to/show/2207-accessing-files-over-wifi-without-a-router-android-pc
Why don't you use the phone as a hot spot by enabling internet sharing? Remove the router.
Is it possible to tap a windows phone to a NFC reader connected to a windows laptop running a windows store app?
what I want to achieve is to send a message from windows phone to windows store app, and trigger a registration action.
any advice will be greatly appreciated.
Yes, it's fully supported through the Windows.Networking.Proximity APIs. However, the problem you may hit is that it's difficult to find desktop/laptops that support NFC proximity. You can easily find NFC readers that can read smart cards and tags, but most of these don't support proximity.
The only USB dongle I've seen that supports proximity is this Sony one, however I've also heard that there are reliability problems with it: http://www.sony.net/Products/felica/business/products/RC-S380.html
This is how you do it on Windows Phone 7 http://blog.jerrynixon.com/2011/11/mango-sample-lock-and-run.html is it possible in Windows 8?
This sample is showing you how to implement the functionality so your app will still "run" when the device is locked. It only seems to work with a kind of "background tasks" which makes it not exactly the same as it is for Windows Phone.
http://code.msdn.microsoft.com/windowsapps/Lock-screen-apps-sample-9843dc3a
Please note that an app that can run when the device is locked should have at least one of the following background tasks:
Control Channel
Timer
Push Notification
Here is some more info on the lockscreen: http://msdn.microsoft.com/library/windows/apps/Hh779720
UPDATE:
As far as I have found there is no exact behaviour like in Windows phone to run your app under the lockscreen. There are a few recent posts on the MSDN blogs which explain the background model http://blogs.msdn.com/b/windowsappdev/archive/2012/05/16/being-productive-when-your-app-is-offscreen.aspx?wa=wsignin1.0
Sorry to see that at this moment there is no way to make it work under the lockscreen