windows-phone-8.1

How can I determine whether I am connected to WiFi or a mobile network in Windows Phone 8.1 (Universal app)?

天涯浪子 提交于 2019-12-18 05:14:08
问题 I am working with a Windows Universal app (shared backend between Windows 8.1 and Windows Phone 8.1, not Silverlight). The app connects to Azure with Azure Mobile Services. In the settings for the app I would like to have an option for synchronisation to only occur over a WiFi network. How can I determine if the phone is connected to WiFi or a mobile network? Although from my research I have found ways to do this with older versions of Windows Phone and with Silverlight, it seems I can only

New Windows Phone Silverlight 8.1 apps

☆樱花仙子☆ 提交于 2019-12-18 04:24:19
问题 I have just updated my Windows Phone HTC 8S to Windows Phone 8.1 Developer Preview and I would like to begin playing around with any new API's. I did come across the Windows.Phone.System.LockScreenExtensibility namespace, but it says: Minimum supported phone Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only] Is there a difference between normal Windows Phone 8 apps that we're currently making, and "Windows Phone Silverlight 8.1" apps? I've never heard of Silverlight 8.1 apps before.

Facebook Login for Windows Phone 8.1

浪子不回头ぞ 提交于 2019-12-18 04:17:16
问题 I am trying to figure out a simple code for logging in facebook from a Windows Phone 8.1 app (C#). As the Facebook Client from NuGet doesn't target Windows Phone 8.1, it seems I'd have to write some extra code. As I read in this facebook post , I'd need to launch an Uri to invoke the Login Dialog. That much, I managed to do : await Launcher.LaunchUriAsync(FacebookUri.DisplayLoginDialog); where DisplayLoginDialog is a static string object with the required necessary data on the request (appId,

Facebook Login for Windows Phone 8.1

对着背影说爱祢 提交于 2019-12-18 04:17:03
问题 I am trying to figure out a simple code for logging in facebook from a Windows Phone 8.1 app (C#). As the Facebook Client from NuGet doesn't target Windows Phone 8.1, it seems I'd have to write some extra code. As I read in this facebook post , I'd need to launch an Uri to invoke the Login Dialog. That much, I managed to do : await Launcher.LaunchUriAsync(FacebookUri.DisplayLoginDialog); where DisplayLoginDialog is a static string object with the required necessary data on the request (appId,

WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)

浪子不回头ぞ 提交于 2019-12-18 03:11:11
问题 I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 . So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1". So here the code:from this link using Microsoft.Phone.Tasks; private void TextBlock_Tapped_Call(object sender, TappedRoutedEventArgs e) { PhoneCallTask phoneCallTask = new PhoneCallTask(); phoneCallTask.PhoneNumber = "2065550123"; phoneCallTask.DisplayName = "Gage"; phoneCallTask

WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)

橙三吉。 提交于 2019-12-18 03:11:06
问题 I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 . So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1". So here the code:from this link using Microsoft.Phone.Tasks; private void TextBlock_Tapped_Call(object sender, TappedRoutedEventArgs e) { PhoneCallTask phoneCallTask = new PhoneCallTask(); phoneCallTask.PhoneNumber = "2065550123"; phoneCallTask.DisplayName = "Gage"; phoneCallTask

Navigating to a new page from the View Model in Windows Phone 8.1 universal app

一笑奈何 提交于 2019-12-18 01:21:13
问题 I am working on a windows phone 8.1 universal app and want to find the best way of handling page navigations without having large amounts of logic in the code behind. I want to keep the code behind in my View as uncluttered as possible. What is the accepted MVVM way of navigating to a new page in response to a button click? I currently have to send a RelayComnmand message from the ViewModel to the view with the details of the page to navigate to. This means that the code behind has to be

Windows phone 8.1 can't reference System.Data

旧城冷巷雨未停 提交于 2019-12-17 21:33:13
问题 I'm trying to create a windows phone 8.1 apllication which has access to a local Database. I want to handle the DB acess in a portable class library. For introduction I looked as this webpage: https://msdn.microsoft.com/de-de/library/windows/apps/hh202876(v=vs.105).aspx But I can't even reference the required namespaces: using System.Data.Linq; using System.Data.Linq.Mapping; using System.ComponentModel; using System.Collections.ObjectModel; And also I can't add none of them as reference. Can

Toggle flashlight in Windows Phone 8.1

一个人想着一个人 提交于 2019-12-17 20:58:33
问题 Can anyone say how to toggle flashlight in Windows Phone 8.1 using C#? It seems like there are lots of API changes in Windows Phone 8.1 and most of the API's in WP 8.0 are not supported. Answers are highly appreciated. 回答1: I'm able to use TorchControl on my Lumia 820 like this - first you have to specify which camera you will use - the default is front (I think that's why you may find some problems) and we want the back one - the one with flash light. Sample code: // edit - I forgot to show

Get view bounds of a Map

核能气质少年 提交于 2019-12-17 19:54:43
问题 I'm developing a Windows Phone 8.1 app that works with Bing Maps. During the rendering of this map I use the TrySetViewBoundsAsync to set correctly my custom view. But now I want to get this information (after the user changes the view by zooming/moving the map) but I don't find any method that helps me. How can I get the view bounds? 回答1: There isn't a built in method for this, however it can be done fairly easily. Here is a bit of code for this which I pulled from the Microsoft Maps Spatial