windows-10-mobile

windows 10 apps DownloadOperation not starting

狂风中的少年 提交于 2019-11-30 15:26:36
问题 I'm trying to download a file using this code on a windows 10 universal app: await downloadOperation.StartAsync().AsTask(token, progressCallback); it's working on pc but on mobile sometimes it's doesn't start downloading and not even giving an exception until I restart the mobile. Is it a bug in the system or I'm missing something? Edit 1: the task's status is "waiting for activation" so it's not throwing an exception. it's just waiting and not starting until I restart the phone I'm trying

windows 10 apps DownloadOperation not starting

别来无恙 提交于 2019-11-30 14:20:47
I'm trying to download a file using this code on a windows 10 universal app: await downloadOperation.StartAsync().AsTask(token, progressCallback); it's working on pc but on mobile sometimes it's doesn't start downloading and not even giving an exception until I restart the mobile. Is it a bug in the system or I'm missing something? Edit 1: the task's status is "waiting for activation" so it's not throwing an exception. it's just waiting and not starting until I restart the phone I'm trying always with the same url and I don't have this problem on the pc. It's about the phone only. The task's

How can i use CMake to generate Windows 10 universal project

久未见 提交于 2019-11-30 13:21:22
问题 I'm trying to use CMake to generate Visual Studio 15 project c++ static library for Windows 10. It should be usable on phones so I think it should have support for windows store. Are there any flags I can set? I've found https://github.com/Microsoft/CMake, it is Microsoft's fork of CMake, but I can't find a clue how to use it to enable uniwersal app support. With "normal" cmake when i switch on support for windows stope I get an Error: error MSB3843: Project "project1" targets platform

How can i use CMake to generate Windows 10 universal project

心不动则不痛 提交于 2019-11-30 09:06:42
I'm trying to use CMake to generate Visual Studio 15 project c++ static library for Windows 10. It should be usable on phones so I think it should have support for windows store. Are there any flags I can set? I've found https://github.com/Microsoft/CMake , it is Microsoft's fork of CMake, but I can't find a clue how to use it to enable uniwersal app support. With "normal" cmake when i switch on support for windows stope I get an Error: error MSB3843: Project "project1" targets platform "Windows", but references SDK "Visual C++ 2015 Runtime for Universal Windows Platform Apps v14.0" which

x:Bind image with null string

[亡魂溺海] 提交于 2019-11-30 06:46:58
In XAML I have the following line: <Image x:Name="MainImage" Source="{x:Bind ViewModel.MainPic,Mode=OneWay,TargetNullValue={x:Null}}" Stretch="UniformToFill"/> In ViewModel: public string MainPic { get { if (Data == null) return default(string); else return Data.Photos.ElementAtOrDefault(0).url; } } App compiles fine but during execution (since Data is populated after few seconds), the app crashes with the following exception: System.ArgumentException: The parameter is incorrect. Debugger breaks at: private void Update_ViewModel_MainPic(global::System.String obj, int phase) { if((phase & ((1 <

how to implement chart control in Windows 10 UWP

自古美人都是妖i 提交于 2019-11-30 06:44:38
I need to implement linear graph. Is there any chart control for Windows 10 UWP? Any suggestions? Thanks Syncfusion provides free license to independent developers for their Essential Studio suite. They have some great visualization tools. You can check them here: https://www.syncfusion.com/products/uwp You can find more information about its free license at following link: https://www.syncfusion.com/products/communitylicense Filip Skakun has made a great library that has several charting options available! It has been possible to use it in WinRT and he is in the works on porting it to UWP (

WP8.1 and WP10 differences

你说的曾经没有我的故事 提交于 2019-11-30 05:37:03
问题 With Windows Phone 8.1, next line worked well but now when users are changing to Windows 10 phones, devices are failing. ProductLicense inAppLicense = CurrentApp.LicenseInformation.ProductLicenses["Keyfor"]; As mentioned worked with WP 8.1 nicely and license information was read and stored nicely. Now with Windows 10 phones, that line just generates exception. "Exception from HRESULT: 0x803F6107". Same result with real devices as well with emulators. So, how can I check LicenseInformation

Windows 10 Mobile Error: DEP6200

拜拜、爱过 提交于 2019-11-29 14:24:43
I am trying to deploy a Windows 10 app to a Lumia 635 running 10.0.10586.11 and I get this error: Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device 'DEVICE GUID'.': SEHException - External component has thrown an exception. Error : DEP6200 : Bootstrapping 'Device' failed. Device cannot be found. The data necessary to complete this operation is not yet available. Unlike most, I am capable of deploying to an Emulator, just not the physical device. Based on this question: Error : DEP6200 : Bootstrapping 'Device' failed. Device cannot be

Extended execution not working properly?

我们两清 提交于 2019-11-29 09:11:19
I'm not able to get ExtendedExecution to work properly. The problem is that the Revoked event is not being fired until the execution is finished. If we take a sample: private async void OnSuspending(object sender, SuspendingEventArgs e) { Debug.WriteLine("Suspending in app"); var deferral = e.SuspendingOperation.GetDeferral(); using (var session = new ExtendedExecutionSession()) { session.Reason = ExtendedExecutionReason.SavingData; session.Description = "Upload Data"; session.Revoked += (s, a) => { Debug.WriteLine($"Extended execution revoked because of {a.Reason}"); }; var result = await

How to detect is a camera is available using isTypePresent in a Windows 10 Universal Application

邮差的信 提交于 2019-11-29 07:40:45
When developing a Universal Application for Windows 10 you are encouraged to detect device specific hardware using IsTypePresent . (Microsoft refer to this feature as ' Light up '). An example from the documentation that checks for a device's back button is: if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; It is clear here that the string "Windows.Phone.UI.Input.HardwareButtons" is passed as an argument to the IsTypePresent() method. I would like to know if