windows-phone

How to detect if background music is playing in WP8?

我只是一个虾纸丫 提交于 2019-12-21 05:43:14
问题 If anyone has developed WP apps before you know that you can't pass certification if your app stops music that is currently playing without the users consent. I did see this question here which might have worked for WP7 apps but it apparently doesn't work for WP8. I assume it doesn't work because the WP8 OS doesn't support XNA (It is only backward compatible, and if you developed the app using 7.1). Has anyone come across the solution for detecting background music in WP8. 回答1: I believe

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

How to debug a website on Windows Phone? [not remote debug]

人盡茶涼 提交于 2019-12-21 03:37:28
问题 I am a web developer and would like to debug a webapp/website on a Windows Phone device. It would be neat to have some kind of window where I can see the javascript console. I know how to get the console window on both Android (about:debug) and iOS (Developer console), but I have not yet figured out how on Windows Phone. Is it possibible, and if so, how? EDIT: What I am looking for is not remote debugging. I am looking for a debug console on the actual device . 回答1: Windows Phone 7.5+ (IE9)

get phone accent brush programmatically c#

我们两清 提交于 2019-12-20 18:04:30
问题 I have textbox in xaml <TextBlock Style="{StaticResource PhoneTextExtraLargeStyle}" FontSize="{StaticResource PhoneFontSizeLarge}" FontFamily="{StaticResource PhoneFontFamilySemiLight}" Margin="12,10,12,0" /> How can I get value of phoneaccentbrush, programmatically (c#) from system resource of windows phone 7 / 7.5 / 8 so that i can set the foreground-color to match the accent selected in the WP's settings. 回答1: First, you need to create currentAccentColorHex before Constructor of you C#

get phone accent brush programmatically c#

我是研究僧i 提交于 2019-12-20 18:04:03
问题 I have textbox in xaml <TextBlock Style="{StaticResource PhoneTextExtraLargeStyle}" FontSize="{StaticResource PhoneFontSizeLarge}" FontFamily="{StaticResource PhoneFontFamilySemiLight}" Margin="12,10,12,0" /> How can I get value of phoneaccentbrush, programmatically (c#) from system resource of windows phone 7 / 7.5 / 8 so that i can set the foreground-color to match the accent selected in the WP's settings. 回答1: First, you need to create currentAccentColorHex before Constructor of you C#

React Native v Xamarin Forms - Choosing Cross Platform App Environment [closed]

点点圈 提交于 2019-12-20 16:35:10
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I have been looking at Xamarin Forms for building a cross platform App. We would like a framework which targets iOS, Android and Windows Phone. It seems like a nice product, but the license cost may cause us a problem with our business model and also licensing for Windows

Fast App Resume issues in windows phone 8

不打扰是莪最后的温柔 提交于 2019-12-20 14:10:00
问题 When i set ActivationPolicy="Resume" in WMAppManifest.xml page tile navigation(navigation URL) is not working in Tombstone state, it reloads the last back stack page(URL). It works fine with Dormant state with out reloading the page. If don't set this property (ActivationPolicy="Resume") it reloads the page in both states [Dormant state and Tombstone state]. But how can we achieve the navigation to secondary url's, when we set that property. Please help me . 回答1: Adding ActivationPolicy=

State of unit testing for Windows Phone

女生的网名这么多〃 提交于 2019-12-20 10:27:26
问题 I've been pushing my Google Fu to the limits trying to find the most recommended / stable setup for doing TDD + CI for Windows Phone applications. Can anyone who has successfully been doing this point me in the right direction? Here's what I want to be able to do (if it's possible): Write unit tests for view models and application services that don't require phone functionality Execute tests directly in Visual Studio via Resharper or TD.NET Execute the unit tests from the command line with

(Dis)Connecting bluetooth devices with Windows.Devices.Bluetooth.Rfcomm (WP8.1)

烈酒焚心 提交于 2019-12-20 09:25:36
问题 Connecting and disconnecting to Bluetooth devices has been giving various results on Windows Phone/Desktop 8.1. I have been using the Windows.Devices.Bluetooth.Rfcomm namespace and I have tried to connect several devices with different Bluetooth versions/classes. Version 1.2 (Class 1 and 2) Version 2.0 (Class 1 and 2) Version 2.1 (Class 1 and 2) Tested on Nokia Lumia 625 and Lumia 635, Dell Latitude E6500 and a Dell Precision M6400. Whenever I try to connect to either of the 2.0 or 2.1

Windows Phone - Audio Endpoint Device

☆樱花仙子☆ 提交于 2019-12-20 07:09:24
问题 I can't seem to find this anywhere. I want to build an Audio Endpoint device that plugs into the Windows Phone Headphone Jack. I know I need to start with what the phone is capable of receiving and detecting. Ultimately I would like to use already in existence libraries however I have no heartache about writing my own. My problem is I can't find any examples of how people access the Audio input on the phone outside of the built in microphone. Is there a library for this? 回答1: You can detect