I am trying to get the power saving mode in UWP apps and I find the PowerManager class in Windows.Phone.System.Power.dll and I am not able to reference it in UWP apps.. is there any other way to check the power saver mode is enabled? and my target device is windows 10 tablet as of now.. if there's way to reference Windows.Phone.System.Power.dll in the Universal Windows project please let me know.
For a UWP app you should use Windows.System.Power.PowerManager (i.e. not from the phone namespace, which is for WP 8.1 apps):
https://learn.microsoft.com/en-us/uwp/api/windows.system.power.powermanager
Thanks - Stefan Wick
Windows Developer Platform
Related
I writing Windows Phone app for Windows 10
I try to deploy app on my device (Lumia 550)
But it not shown in list of devices.
I turn on developer on my laptop and on phone
How I can fix it?
U are creating an Universal Windows App,
u should create an Windows Phone 8.1 App.
Is your device registered as a Developer Device? In the Phone SDK is an App "Windows Phone Deveveloper Registration". You have to enable your device as Developer Device.
And, yes, your App must be a Universal App for (8.1 or 10, depending on your Phone OS Version).
Regards,
Oliver
Another Option, after seeing the Screen shot again. You have to Switch from x86 or x64 to ARM in the Build-Options.
Okay, I m new to windows development. My task to build a small app which will run ONLY on windows 8.1 tablet. (NO app store, nothing like that)
After lots of research on Microsoft site, I am lost in the plethora of information and completely confused. e.g Microsoft says, surface tablet apps can be developed on windows vista/7. and then they say somewhere else that windows 8.1 apps can only be developed on windows 8.1 (or 8. I forgot) and I would need a developer license.
Questions:
1- is building apps for surface is different than building apps for windows phone?
2- I want to do it in WPF/c#. possible?
3- for an app running on ONLY windows 8.1 Surface tablet, what are hardware and software requirements? (including windows/ VS version etc.)
Learning something new isn't as issue. The issue is if im learning the Right thing which can help me achieve my task.
Please guide
Thanks in advance.
You will need a developer licence to debug locally on a machine.
You cannot install (sideload) apps onto a device that isn't developer registered, for consumer deployment, everything must come signed and through the store. You can override this is business and enterprise version of windows, but afaik this has to be done/deployed at an administrator level.
If you want to develop for windows 8.1, you need to be running 8.1, as deploying and debugging are done on the local machine, then optionally displayed in an emulator-like virtual session, there's no actual 'emulator' for desktop windows runtime apps.
Previously, yes, surface was winRT, and mobile was silverlight based. Now with the shared app platform the process is shared across the two, both are winRT and you can deploy one application across the two.
First you need to know that there are two types of apps for devices like Surface. The first one is desktop applications which are commonly referred as WPF Applications. The second one is Modern application commonly called Metro Apps.
The desktop applications can run windows 7/8.1/10 where as metro apps can only run on windows 8.1/10. If you want to build desktop apps you can build them on windows 7/8.1/10 using visual studio 2010/12/13/15, but if you want to build metro applications you need to build them on 8.1 using VS 2013 for windows 8.1, and for windows 10 you need to use windows 10 and vs 2015.
Your question is a bit confusing. If you want to build applications only for windows 8.1 tablet you need to build a metro app and only way to distribute the app is through the App store.
There are two main versions of Windows 8.1. RTM and rest of the versions(like home, pro etc.). Tablets running windows 8.1 RTM can not run all kinds of desktop apps. They only run metro apps. Hybrid tablets running windows home, pro or enterprise can run both desktop and metro apps.
If I am not mistaken surface pro 3 run windows 8.1 pro and can run both wpf and metro apps.
It depends. If you want to build WPF apps it is different from windows phone apps. If you want to build metro apps, it's not that different from WP Apps.
As I mentioned, surface pro 3 can run desktop apps. So WPF/C# apps are possible.
OS: windows 8.1 and visual studio 2013.
For further clarification, Check out the difference between different version of windows, and also differences between desktop and modern(metro) apps.
Starting points for WPF:
http://www.codeproject.com/Articles/140611/WPF-Tutorial-Beginning
http://www.wpf-tutorial.com/
See Microsoft Developer Network MSDN
Microsoft Channel9 Tutorial Videos
I'm using NetSpell.SpellChecker in my WindowsPhone 8.1 application, but when I compile the code I'm getting the following error:
The base3 class or interface 'System.CompoenentModer.Compoenent' in
assembly xxx referenced by type NetSpell.SpellChecker.Spelling could
not be resolved.
Does anyone have an idea how to solve it? Is NetSpell supported in Windows Phone apps?
If not, do you have any idea of how to implement spellcheck/auto correct in Windows Phone?
If you are using Windows Runtime to build apps for Windows Phone, the support is built in, use:
<TextBox IsSpellCheckEnabled="True" />
Unfortunatly this doesn't work in Windows Phone Silverlight applications.
And the NetSpell library doesn't seem to be compatible with Windows Phone, it is dependent on System.ComponentModel.Component, which according to the MSDN documentation is not supported on Windows Phone. I have yet to find another spell checker library. (NHunSpell also doesn't seem to work with Windows Phone)
If it is for your app, I would recommend writing the app as a Windows Phone Store app (Windows Runtime) and use the built in support instead.
I've downloaded the Windows Phone 8.1 SDK Update and I'm attempting to make a Windows Phone 8.1 project. I've updated visual studio with the latest patches but the only template options I have for 8.1 is the standard Windows Store apps as seen in the screenshot below:
Windows Store
Any idea how I can get "Windows Phone" to appear with the appropriate OS target?
I think you didn't install everything. Because i've got actually another screenshot. Following this link you must install Visual Studio 2013 Update 2 - everything needed for WP8.1 is there. Also if you wish to develop Windows Store apps (universal or something) you should install Windows 8.1 SDK from here
Look a bit bown in the list on your screenshot. On the same level the 2nd last option is Windows Phone. That should be it.
I am working on VOIP app and build the sip library for Windows Phone 7.1 OS. IT is working fine when i run the project on any Windows 7.5 devices. But when i try to run the same project on WP8 device it not working well. It start giving me various exceptions like Null Pontere Refernce Exception in System.Windows.ni.dll . My understanding was if anything which is running fine in WIndows 7.5 device will work fine in Windows 8 device. Can anyone help what will be the possible reasons?
Here is an MSDN page that could interest you: App platform compatibility for Windows Phone.
In general, the Windows Phone app platform enables apps that target Windows Phone OS 7.1 to run without modification or
recompilation on Windows Phone 8.
[...]
There are other scenarios in which a Windows Phone OS 7.1 app may
behave differently when it runs on Windows Phone 8.