windows-phone-8.1

Windows Phone 8 ApplicationSettings - Get settings in Universal app

本小妞迷上赌 提交于 2019-12-21 05:36:07
问题 I'm upgrading windows phone 8 application. I created Universal app (Windows.Phone 8.1). The settings in old WP8.0 application are saved in following way: IsolatedStorageSettings.ApplicationSettings.Add("MY_SETTINGS", value); Question: How can i get this settings when app is upgraded to WP8.1 (Universal app). I try the following: var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; var isContains1 = localSettings.Values.ContainsKey("MY_SETTINGS"); var roamingSettings =

Geolocation in C#

冷暖自知 提交于 2019-12-21 03:56:25
问题 I'm trying to develop an application that should be something like a game. The user would have some locations in a city and he would have to do something on each location. In order to track the position of the user, I have tried using geolocation with the following code: Geolocator geolocator = new Geolocator(); //geolocator.DesiredAccuracy = Windows.Devices.Geolocation.PositionAccuracy.High; geolocator.DesiredAccuracyInMeters = 50; try { Geoposition geoposition = await geolocator

new APIs for windows phone 8.1

时光毁灭记忆、已成空白 提交于 2019-12-20 12:29:29
问题 I am trying to use these two methods (of WP 8) in windows phone 8.1, but it gives error and doesn't compile, most probably becasue they are removed. I tried searching the new APIs but couldn't get any. What are other alternatives for these. Dispatcher.BeginInvoke( () => {}); msdn link System.Threading.Thread.Sleep(); msdn link 回答1: They still exists for Windows Phone 8.1 SIlverlight Apps, but not for Windows Phone Store Apps. The replacements for Windows Store Apps is: Sleep (see Thread.Sleep

Map APIs for windows PHONE 8.1 in HTML, CSS, JS

久未见 提交于 2019-12-20 06:38:12
问题 I am aware there is a similar question (Map APIs not working for windows phone in HTML), but I don't have enough reputation to comment so I am having to ask my own question. I have successfully added bing maps to my windows 8.1 store app (HTML, JS, CSS), but when trying to add the reference in visual studio (the maps SDK) to windows phone 8.1 the option isnt available to me. I went through the answer to the question asked previously and in the examples there is a windows store app (fine!), a

How to resolve an incorrect path to SQLite Database?

柔情痞子 提交于 2019-12-20 06:37:12
问题 Overview - I've added some code to copy an existing database to the device's local folder. So far the first condition if the existing db doesn't already exist works fine. Issue - But when the line of code to copy the existing db from the solution folder to the device folder executes, I get an SQLite error. The error tells me that the db file couldn't be opened. During debugging I see that the DBPath is the same as the file location in my solution. So I'm not too sure what could be wrong with

Automatically filter/order ListBox items (Windows Phone)

情到浓时终转凉″ 提交于 2019-12-20 06:27:22
问题 I want to ensure, that the items added in my list box are ordered in ascending order according to the serial number of each item (e.g 1 item, 2 item, 4 item, 3 item should be automatically order according to its number 1.2.3.......10). Here is the C# source: namespace XeroQuiz { public partial class MainPage : PhoneApplicationPage { IsolatedStorageFile Settings1 = IsolatedStorageFile.GetUserStoreForApplication(); MyDataList listobj = new MyDataList(); public MainPage() { InitializeComponent()

Setting up WNS service for windows phone 8 get error after add <Identity> tag

梦想的初衷 提交于 2019-12-20 05:42:09
问题 I am setting up windows phone 8.1 push notification with urbanairship. I have SID and Secret key for my app. But when i do following step mentioned in dev.windows WNS-->Live Service site: To set your application's identity values manually, open the AppManifest.xml file in a text editor and set these attributes of the element using the values shown here. my application is stop working. is any one provide me steps for set up WNS in windows phone 8.1 then it helps me a lot, I spend over the week

WP8.1: Cortana uri association?

女生的网名这么多〃 提交于 2019-12-20 05:27:06
问题 Does Cortana have a uri association, or another way to be launched from other apps? I already tried await Launcher.LaunchUriAsync(new Uri("cortana:///")); await Launcher.LaunchUriAsync(new Uri("ms-settings-cortana:///")); but they don't work... 回答1: I know this is a few months after this was asked, but for anyone else looking to launch Cortana you can do it by calling this: await Launcher.LaunchUriAsync(new Uri("bing://home")); 回答2: I don't know if there's a cleaner way, but you can take

Can't scroll till the end of the results when the keyborad is opened (Windows Phone)

你。 提交于 2019-12-20 04:55:14
问题 I am developing Windows Phone app and I've got this issue: I have a list control which displays my search results, but when the keyboard is opened some of my results aren't visible because of my keyboard... Is there a way to shrink the control till keyboard border? In order to see all the results. I want to scroll till the end of the results even when the keyboard is opened. 回答1: There is my solution public class ResizeContentOnKeyboardShowingBehavior : Behavior<Page> { private readonly

I cannot apply a custom style for an AppBarButton inside a CommandBar in WP 8.1

你离开我真会死。 提交于 2019-12-20 04:38:25
问题 I have a very specific question. I could not find any answers for this exact problem, so I used the trial and error method to pinpoint the problem. Here is an example code I have the problem with: <Page.BottomAppBar> <CommandBar x:Name="MainMenuCommandBar" ClosedDisplayMode="Minimal"> <CommandBar.PrimaryCommands> <AppBarButton x:Name="otherCommandButton" Label="Egyéb" Icon="List" Click="otherCommandButton_Click" Style="{StaticResource appbarButton}"> <AppBarButton.Flyout> <MenuFlyout>