I have a huge problem with localization in Windows Phone 8.1.
Namely, I have read all similar questions on StackOverflow, but none is applicable for Windows Phone 8.1 (all of them seem to work on 8.0 and below). The problem I have is that even though I call all of the methods mentioned in this StackOverflow article, but it does not work on Windows Phone 8.1.
The problem seems to be that either resource file does not get set to another language or the UI does not update.
Is there any newer solution to this problem?
Thanks in advance :)
Related
I have a Windows phone 8.1 Silverlight application.
Now I need to make it run also on windows 10 phones and tablets. I checked and the app is available on windows 10 phones, even if deployed for windows 8.1 but it seems like I can't install it on windows 10 tablets.
My question is pretty simple:
Is there a "fast way" for converting the 8.1 project to UWP?
Can I deploy my app for tablets without re-writing all the code?
Thanks all
This question is oddly similar to one that I answered just yesterday. It's not really a duplicate so I will restate the answer here along with a link to the other question (1)
Unfortunately there is no easy and fully automated way to port your Silverlight app to UWP mostly because the API footprint has changed and updated between the 2 platforms. There are a lot of similarities but also a lot of breaking changes that require some manual changes.
here is Microsoft's guidance for this particular upgrade path.
From the article above:
Note This guide is designed to help you port your Windows Phone Silverlight app to Windows 10 manually. In addition to using the information in this guide to port your app, you can try the developer preview of Mobilize.NET's Silverlight Bridge to help automate the porting process. This tool analyzes your app's source code and converts references to Windows Phone Silverlight controls and APIs to their UWP counterparts. Because this tool is still in developer preview, it does not yet handle all conversion scenarios. However, most developers should be able to save some time and effort by starting with this tool. To try the developer preview, visit Mobilize.NET's website.
[1] Can a Silverlight out-of-browser app be converted to Universal Windows Platform (UWP) app?
From Windows XP to Windows 7, you could change the current the with the command line: (How do I change the current Windows theme programmatically?). But in Windows 8.1 (and windows 8 I suppose), it doesn't work.
The only way I can do it is with WinaeroThemeSwitcher (http://winaero.com/comment.php?comment.news.209).
How can I do it from native commands or from C#? WinaeroThemeSwitcher proves that it is possible.
I finally found how. Using ILSpy (with few corrections) helped a lot. Thank you magicandre1981.
I also found an implementation online afterwards using COM objects GUID (class ThemeManagerHelpClass):
https://github.com/opkorz/CS199_Thesis/blob/master/Implementation1/CL_Utility2.ps1
Im having problems getting the Reminder notification to launch my App once it's touched. Through the MSDN step by step guide and documentation found HERE, I know that, if the user does not touch any of the buttons (snooze/decline) but touches the popup itself, the Uri defined in the reminder should be opened inside the App. However, once I do that, not even the App itself is launched, let alone the specified Uri.
To make sure the problem wasn't on my App, I've created a new application and copied the exact code found on the page linked above, and while it does schedule a Reminder, once it pops up, touching it only makes it disappear, still not launching the App nor the specified Uri (which exists, yes).
I've already searched a bit around here, and even though I've found a couple of questions similar to what I'm asking (such as this one), it relates to WP 7, while Im having problems with WP 8.1.
The user in the previously mentioned question figured out by himself that one needs to have the app closed for the popup to launch it at the specified Uri. However, even doing so, nothing happens with me, both on the emulator and the device. I have even removed it from the suspended/previously used apps, but still nothing happens.
I have also found this, but nobody answered, and I don't have enough rep to comment on his question asking if he found the solution :/
I'm using VS 2013 Professional Update 3, Windows 8.1 Pro 64 bits, The Windows Phone 8.1 SDK and Emulator and a Nokia Lumia 620 with Windows Phone 8.1 on it. My apps are Windows Phone Silverlight 8.1. If anyone wants, I can link to the binaries for the test app I've built, but it's really a copy & paste from the tutorial from the first link I mentioned.
If anyone could help me on this, I'd reeeeally appreciate, because I feel like I'm missing something really small and stupid, but can't figure out what. Other than that, it just seems like a bug on WP 8.1.
Thanks in advance, and sorry if it's an already solved question, but as you can see, I tried to find the answers and couldnt...
Just wanted to say, to whoever finds him/herself struggling with this problem, that I - sort of - solved this problem.
I got in touch with a Microsoft Developer Evangelist who told me that indeed, this feature was removed from the 8.1 API. He refused to admit it was simply a bug, even though he agrees on that fact that the "Uri" property still being there is confusing. I'm not sure whether to believe him or not on this matter (I still think it's a bug), but at least I found out the problem was not me.
In the end, the only viable solution was to convert the whole project back to WP 8.0. Since Visual Studio does not allow one to do it by simply editting the project file, I had to copy all files to a new project by hand. Luckily, there were no major issues while doing so. Now the "go to URI" behaviour works just fine!
Hope it helps someone :)
I'm trying to use voice command service in windows phone 8.1 application, but I can't find the appropriate namespace (Windows.Phone.Speech).
Is it only available in wp8 or Silverlight ?
Thanks a lot!
I ran across this question while looking for the answer to this myself today; so hopefully this will help someone else.
Yes! It does exist in Windows Phone 8.1 (WinRT). It is now called VoiceCommandManager however, and is under Windows.Media.SpeechRecognition:
https://msdn.microsoft.com/en-us/library/windows.media.speechrecognition.voicecommandmanager.aspx
Noting also that they are deprecating this in Windows 10 (there is a note to that effect on the page), which probably accounts for why this was so hard to track down. I also found this handy sample project:
https://code.msdn.microsoft.com/windowsapps/Voice-Commands-for-Windows-2f808ac6/
I have created a project that utilizes original libFLAC.dll code to play FLAC files on Windows Phone 8.0. It used to work both in MediaElement and in background on WP 8.0, but after updating the project to Windows Phone 8.1, the sound became flickering and the components began "stack overflow"-ing.
I have updated the project to Windows Phone 8.1 Runtime project since Silverlight 8.1 doesn't support Background Audio. Though the problems were when using both Background Audio and MediaElement in Windows Phone Runtime app.
As it seems unclear, I want to clarify: I have created a MediaStreamSource adapter that hooks Windows.Media.Core.MediaStreamSource events and does all the work. I don't use Silverlight's MediaStreamSource implementation of course.
I have created a thread on MSDN forums where one can find more details, and open-sourced the project on CodePlex so everyone can just take the source code for both WP 8.0 and WP 8.1 and see what's gone wrong.
I really hope someone could find workaround or at least make Microsoft aknowledge the problem.
Okay, so thanks to MSDN forums community an #mcosmin especially, the solution was found and it is pretty simple.
To fix this, I simply need to set the Duration property of the MediaStreamSample, because unlike Silverlight's sample, WinRT's sample cannot calculate it on its own.