windows-phone

Creating a build on windows phone 8

落花浮王杯 提交于 2019-12-22 12:59:27
问题 I want to make a build (like APK) of my windows phone 8 app for testing. How can i do so.? 回答1: When you Run the Windows Phone 8 app in VS 2012, an XAP file is created in the Bin folder of your app. Its similar to the apk file of Android app. But you cannot directly install this in the phone. You need a developer account to developer unlock the device for testing. You can test the app in Emulator any way. You can also make use of the Beta testing feature of the Windows Phone marketplace, but

Windows phone - Avoid scrolling of Web browser control placed inside scroll viewer

↘锁芯ラ 提交于 2019-12-22 11:25:02
问题 I have to show a web browser inside a scroll viewer in windows phone application, with these requirements : Web browser height should be adjusted based on its content . Web browser scrolling should be disabled , ( when user scrolls within web browser, scrolling of scroll viewer should take place ) Web browser can do pinch-zoom and navigate to links inside its content. How can I implement that? Any links or samples is greatly appreciated. 回答1: I'm using code like this. Attach events to the

handle 401 unauthorized error on windows Phone with Phonegap

ⅰ亾dé卋堺 提交于 2019-12-22 10:37:54
问题 I'm creating an application with phonegap on windows phone 7, that need an authentification on a server. When we log with the correct username and password, we got a 200 status. And everything works. But if we make a mistake on the login or the password, the server send us back a 401 error. This freeze my application. I need to kill it and restart it. So not very practice. I check the response with fiddler on my computer and the phone receive the 401 error, and I manage this error on my code.

Windows Phone 8 SDK running in Visual Studio 2010

◇◆丶佛笑我妖孽 提交于 2019-12-22 09:56:52
问题 I know that the SDK is not finished, yet a few lucky developers have got their hands on it already, so here's my question: when you installing Windows Phone 8 SDK, did it install the SDK in Visual Studio 2010 also, or just on the 2012 edition (including 2012 Express)? 回答1: After posting my question, two different developers that had access to the SDK contacted me directly stating that there is no integration of the Windows Phone 8 SDK in Visual Studio 2010, just on the 2012 version. 回答2: No,

HTML5 msBackingStorePixelRatio and window.devicePixelRatio don't exist - are there workarounds for high definition canvas?

末鹿安然 提交于 2019-12-22 09:19:37
问题 Working with a javascript-based hybrid mobile app, I had problems with blurry text being drawn in a canvas. I found suggestions like this, which fixed things on Android and iOs. But not in Windows phone (our app uses IE10). Adding a debug div and this code to the app: var PIXEL_RATIO = (function () { var ctx = document.createElement("canvas").getContext("2d"), dpr = window.devicePixelRatio || 1, bsr = ctx.msBackingStorePixelRatio || ctx.webkitBackingStorePixelRatio || ctx

IE 10 on WP8 ignores media queries?

蓝咒 提交于 2019-12-22 08:24:01
问题 I'm working on a site that uses media queries. I can see in my desktop browser that they are working correctly, but when I navigate to the site on my WP8 device, no CSS is loaded. I've created a very simple HTML page to replicate the problem and show what solution I tried, but couldn't get to work. Here is the entire code: <html> <head> <title>WP8 Test</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <script src="http://ajax

Programmatically changing the appbar icons

不问归期 提交于 2019-12-22 07:00:04
问题 In my C# Windows Phone 8 app, I have an AppBar. I have two icons on this AppBar, one new icon, and one edit icon. I want to change the edit icon, to the back icon whenever it is pressed, and then back to the edit icon whenever it is pressed again. I have tried this code, but I get a nullReferenceException: public static Uri addIcon = new Uri("/Assets/AppBar/new.png", UriKind.Relative); public static Uri backIcon = new Uri("/Assets/AppBar/back.png", UriKind.Relative); //Edit the projects if

How to create a custom VirtualizingPanel on Windows Phone 8.1 / Windows 10?

喜欢而已 提交于 2019-12-22 06:59:32
问题 I'm trying to do this in Windows 10 and Windows Phone 8.1 (app link): I have a custom class called FluidPanel that extends Panel and overrides methods MeasureOverride and ArrangeOverride. The goal is to create the Google Keep appearence. Ok, it's working fine. But, because I'm using a basic Panel as the ItemsPanelTemplate , the items Reorder doesn't work. Also, transistions doesn't work and it doesn't virtualize. So, I would like to know how to create a custom panel that reorder items and

How to access downloads folder in windows phone 8.1

荒凉一梦 提交于 2019-12-22 06:24:10
问题 I want to download files to Downloads folder and read. it is a root folder like photos and videos. But Windows.Storage.DownloadsFolder isn't available for phone and I don't see it in KnownFolders like Windows.Storage.KnownFolders.PicturesLibrary; Also I tried C:\Data\Users\Public\Downloads\ it gives an unauthorized result. I see some apps has access to it, but how? 回答1: You can use a file or folder picker. I'm not sure if you want the user to chose a file, or if you want to pick a file

How to access downloads folder in windows phone 8.1

﹥>﹥吖頭↗ 提交于 2019-12-22 06:23:08
问题 I want to download files to Downloads folder and read. it is a root folder like photos and videos. But Windows.Storage.DownloadsFolder isn't available for phone and I don't see it in KnownFolders like Windows.Storage.KnownFolders.PicturesLibrary; Also I tried C:\Data\Users\Public\Downloads\ it gives an unauthorized result. I see some apps has access to it, but how? 回答1: You can use a file or folder picker. I'm not sure if you want the user to chose a file, or if you want to pick a file