My application responds to mobile operator information that I used to be able to get through
DeviceNetworkInformation.CellularMobileOperator;
It seems that this property is not available anymore for the new WP XAML and universal apps.
This information is critical since my application content depends on what mobile operator provider is the user connected to.
Is there some kind of a workaround for this?
Since Universal apps run off the Windows RT platform the DeviceNetworkInformation class is not available.
To use the class DeviceNetworkInformation in your code you'll need to build a Windows Phone Silverlight 8.0/8.1 app instead.
Related
I am developing new windows phone 8.1
[RT] application working fine , but now my client want to give support to tablet also . Does my application work in tablet or I have to create a universal project ?
Please help me out for this .
Windows Phone 7.x or 8.x apps do not run on Windows 8/8.1/10 "out of the box" - you need to either have a universal app, or share your code (for example as a portable class library) to allow it to also run on the desktop variant of the OS.
If you want your app to run on over vendors tablets (such as Android or iOS) there are solutions that allow some code sharing, but again, you're looking at supporting another codebase to achieve this.
I need to store and share a user's list of favorites across a Windows Phone 8.1 Silverlight app, and a Windows 8.1 RT app. I have been using Roaming Settings up to this point, but it doesn't work for all connected devices. I have tested my app across a few devices and it syncs for most but not all devices. I have also received some user complaints about this too.
So instead I want to store a user's list of favorites in Azure Blob Storage, with the key being an anonymized user ID. But I can't seem to find any way of determining a user's ID. I have found information about DeviceUniqueId and there is ID_cap_identify_user capability in the manifest file for the Silverlight App (but not for the RT App) but I can't find any documentation on how to utilize this. Any help here would be apprciated.
PS - Does anyone have any theories as to why Roaming Settings isn't working correctly on some devices?
There is an UserInformationClass, BUT take note if you want to use it in reference to windows 10!
If you have a Windows 8 app that uses the UserInformation class, you
should migrate your app to the Universal Windows Platform (UWP) and
access the User class instead. Universal Windows Platform (UWP) apps
that access user information are now expected to declare a new
capability, uap:userAccountInformation, and call new APIs,
Windows.System.User.FindAllAsync and User.GetPropertiesAsync, to get
the data.
There is also an MSDN example on how to use it: https://code.msdn.microsoft.com/windowsapps/Account-picture-name-sample-912baff1
I'm beyond confused trying to grasp what is what regarding Microsoft's so called "Runtime" Apps (also called "Universal" or the convergence of Windows 8.1).
I'm currently building an app for both Windows 8.1 and Phone 8.1 and wondering, is the Notification API exactly the same? Since I'm having trouble understanding what is what, it's hard to google what it is I'm after.
If I googled for "Phone 8 apps" it's obviously wrong, because they are something different.
Optimally I just wanna use the exact same code for the phone app as for the Windows 8.1 app, is that possible?
Sorry if I made no sense and thanks!
If you create an universal app, you'll be able to share the exact same notification code between desktop and phone, as they both share the same runtime (called WinRT). Any code you find to implement notifications on Windows 8.1 is directly applicable on Windows Phone 8.1
Is it is possible to initiate a wp 8.1 Silverlight phone from wp8.1 WinRT phone app?
As i were trying for build a app for Scanning functionality,upto my knowledge there is no inbuilt options to scan the bar qode are QR code. When i search it for some resources, i found and many suggesting to use Zxing libraries. Though i tried with that and the success rate of the Scan was not that much satisfied.
When look through the Silverlight wp app, it was working quite well. So i was planning to create a seperate a app for this in wp 8.1 Silverlight app and that to be initiated from the WinRT phone app.
Please suggest some ideas on this.
Not directly. There is no way for a Windows Phone app to directly launch a specific other app. Apps can launch only files or URIs into their default handlers.
You can hack this by defining a protocol for your app and launching that, but you cannot guarantee that your SL app is installed. The protocol launch is fire and forget and cannot return data. The SL app could save it's data to a custom data type handled by the runtime app and launch that file, but this will all be pretty cumbersome and likely obvious to the user.
I'd try to keep all of the functionality in one app, whether that be a runtime app or a Silverlight app.
As I mentioned in the title, I plan to write an sensor-based application for windows phone platform, but I don't know if windows phone allow application (using some codes) to turn off/on the screen.
Microsoft certification will not allow application to do so, even though if your able to do with some hacks. You cant turn off the screen from your application. This type of app cannot be made for Windows Phone, the API's do not exist, and if someone found a workaround it would be removed from the store. Unfortunately non of the developers have developed such app for windows. One app is available on Windows phone store One Touch Lockscreen, Find here