windows-phone-8

“Installation of the application failed. Run time error has eccured. Fix the capabilities in WMAppManifest.xml file.”

梦想的初衷 提交于 2019-12-23 08:27:20
问题 I was building this simple application for WP8. Everything was working fine until today I had to add a new capability to the manifest file to allow access to sensors. I just used graphical editor to tick ID_CAP_SENSORS . Now every time I try to deploy my app I get: Installation of the application failed. Run time error has eccured. Fix the capabilities in WMAppManifest.xml file. Here is my whole manifest file: <?xml version="1.0" encoding="utf-8"?> <Deployment xmlns="http://schemas.microsoft

Obtaining UI dispatcher in Windows phone 8

青春壹個敷衍的年華 提交于 2019-12-23 08:05:51
问题 I have been developing a Windows Phone application that consumes Windows Runtime component(WRC).A function accessed by a non-UI thread,needs to use a callback that access the Windows phone application. void WControlPointCallback::OnListChange(char *pFriendlyName) { // Callback function to access the UI pCallBack->AlertCaller("Message"); } At first without using the Dispatcher it threw Platform::AccessDeniedException . Then I referred to this, this and this. I tried to obtain the Dispatcher

Obtaining UI dispatcher in Windows phone 8

牧云@^-^@ 提交于 2019-12-23 08:05:15
问题 I have been developing a Windows Phone application that consumes Windows Runtime component(WRC).A function accessed by a non-UI thread,needs to use a callback that access the Windows phone application. void WControlPointCallback::OnListChange(char *pFriendlyName) { // Callback function to access the UI pCallBack->AlertCaller("Message"); } At first without using the Dispatcher it threw Platform::AccessDeniedException . Then I referred to this, this and this. I tried to obtain the Dispatcher

After upgrading to Windows 8.1, unable to run Windows Phone emulator without memory error

本小妞迷上赌 提交于 2019-12-23 07:21:32
问题 After I updated my Samsung Series 9 SSD laptop with 8GB of RAM to Windows 8.1, (not even a year old, and top-of-line when purchased last november), I am now unable to run the Windows Phone emulator while debugging my WP8 app. The error messages I see is: "Not enough memory in the system to start the virtual machine emulator WVGA 512MB.user with ram size 512 megabytes" Well, the instant I attempt to run a build, it the machine immediately goes from 25% memory consumed to 80% consumed. Even

After upgrading to Windows 8.1, unable to run Windows Phone emulator without memory error

六眼飞鱼酱① 提交于 2019-12-23 07:21:13
问题 After I updated my Samsung Series 9 SSD laptop with 8GB of RAM to Windows 8.1, (not even a year old, and top-of-line when purchased last november), I am now unable to run the Windows Phone emulator while debugging my WP8 app. The error messages I see is: "Not enough memory in the system to start the virtual machine emulator WVGA 512MB.user with ram size 512 megabytes" Well, the instant I attempt to run a build, it the machine immediately goes from 25% memory consumed to 80% consumed. Even

Manipulation on Pivot in Windows Phone 8.1

时光怂恿深爱的人放手 提交于 2019-12-23 06:07:39
问题 I have a Pivot with 2 PivotItems. I'm trying to detect whether the user swiped left or right. I thought I could detect this by checking the difference between the ManipulationStarted and ManipulationCompleted point. But whatever I do, those events won't get triggered. <Pivot x:Name="albumart_pivot" Margin="0,-30,0,0" ManipulationStarted="ManipulationStartedEvent" ManipulationCompleted="ManipulationCompletedEvent" ManipulationMode="TranslateX"> <PivotItem Margin="0"> <Grid> <Rectangle Canvas

Manipulation on Pivot in Windows Phone 8.1

依然范特西╮ 提交于 2019-12-23 06:07:10
问题 I have a Pivot with 2 PivotItems. I'm trying to detect whether the user swiped left or right. I thought I could detect this by checking the difference between the ManipulationStarted and ManipulationCompleted point. But whatever I do, those events won't get triggered. <Pivot x:Name="albumart_pivot" Margin="0,-30,0,0" ManipulationStarted="ManipulationStartedEvent" ManipulationCompleted="ManipulationCompletedEvent" ManipulationMode="TranslateX"> <PivotItem Margin="0"> <Grid> <Rectangle Canvas

Does LongListSelector make Lazy Load for us?

感情迁移 提交于 2019-12-23 05:43:10
问题 I'm on windows phone 8 project, in this project, I use panorama template. In first panorama I show the news in a longlistselector. First, I was showing 15 news and nothing was a problem for performance. But now I show 50 news and started to make load time longer I think. My question is, longlistselector make lazy loading for us or should we make something for it like windows stores one. Or I mean, When I scroll bottoms, It gets the small pictures and titles ? I've reached ItemRealized and

How to set and save background image in windows phone?

耗尽温柔 提交于 2019-12-23 05:32:31
问题 I'm using this code, so user can sets custom background image for the application: private void Button_Click(object sender, RoutedEventArgs e) { PhotoChooserTask photoChooserTask = new PhotoChooserTask(); photoChooserTask.Completed += new EventHandler<PhotoResult>(photoChooserTask_Completed); photoChooserTask.Show(); } void photoChooserTask_Completed(object sender, PhotoResult e) { if (e.TaskResult == TaskResult.OK) { System.Windows.Media.Imaging.BitmapImage bmp = new System.Windows.Media

ManipulationDelta on pivot item only fires once

*爱你&永不变心* 提交于 2019-12-23 05:26:15
问题 I am trying to animate an image based on the select pivoted items position. I am currently using the ManipulationDelta event to try and see which direction the user is swiping so that I can fade out or fade in an animated image based on the position of the pivot item. My problem is with the ManipulationDelta event, this event is only ever called once on a pivot item, regardless of how much manipulation of the pivot control is occurring. Does anyone know a way to make it so the pivot items