How to enable Pseudo-language on Windows Phone 8 emulator - windows

I can't seem to enable Pseudo-language on the WP8 emulator. Most tutorials suggest to set the localization via the development operating system, and that these settings somehow "trickle down" into the emulator, but this doesn't seem to work for me -- the emulator just defaults to English no matter how I have my OS language/keyboard set (Control Panel -> Language -> Move Up <language> to top -> restart emulator).
I can change localization settings within the phone's "Settings", and although other languages successfully translate within my app, Pseudo is not an option.
I have Googled lots of MSDN information (including documentation on how to troubleshoot this specific issue) and I have seemingly exhausted my options.
tl;dr Has anyone had trouble with the "trickle down" of localization settings into the Windows Phone emulator? How do you fix it?

Here is the solution recommended by Microsoft
Thread.CurrentThread.CurrentCulture = new CultureInfo("qps-ploc");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("qps-ploc");
See http://msdn.microsoft.com/en-us/library/windows/apps/jj569303.aspx

When I want to run my WP8 app in pseudo-loc, I add the following line to the beginning of App constructor:
Thread.CurrentThread.CurrentUICulture = new CultureInfo("qps-ploc");

Related

Where can I start creating a Windows application?

I want to create an application to run on a Windows 7 PC with a touch screen that is a sort of toolbox with large icons optimized for touch screens.
I need it to include a file browser with a hard coded path. That way I can auto launch the application and they will be taken to the folder right away. I would also like a section where I can put "Useful Applications" shortcuts so that they do not have to go through the start menu or the desktop.
Can someone guide me where I can start learning how I can do this? I would most likely code in C#
Get started with Windows Runtime apps. You can write a Windows Runtime app in a variety of languages, such as C# or C++ with XAML, C++ with DirectX, and JavaScript with HTML/CSS. Now you can easily create apps for Windows devices and Windows Phone from a single project.
https://dev.windows.com/en-us/getstarted

Windows Phone 8 maps uri scheme

I'm developing a windows phone app and want to show the maps app. I know about the uri scheme's ms-drive-to, ms-walk-to and the HERE equivalents, but I don't want navigation. I also don't want to rely on HERE maps, because someone might not have installed that one. The question:
Is there a way of opening the default Map app on windows phone 8?
You could use the MapsTask API;
MapsTask mapsTask = new MapsTask();
//Omit the Center property to use the user's current location.
//mapsTask.Center = new GeoCoordinate(47.6204, -122.3493);
mapsTask.ZoomLevel = 2;
mapsTask.Show();
You should check the sdk.
If you really want to open the apps, you can do it with a trick. Add a brower task an follow steps of this article.

How to check/switch the airplane mode programmatically in Windows 8?

I have to check if the Airplane Mode is enabled in Windows 8 and maybe switch its state. I am currently working on a C# .NET 4.0 Windows Forms application but the answers in this question shouldn't be limited by that.
Unfortunately, there isn't a programmatic way for Metro apps to change the airplane mode in Windows 8. It is against the Metro guidelines for an application to go outside its sandbox and modify system settings like this without user permission (see the discussion at http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/1ad10725-b1b8-4723-b2c3-861900809e02).
Now, you may be able to figure out the status by using some of the functionality in the Windows.Networking.NetworkOperators namespace. Specifically, check out the MobileBroadbandRadioState and NetworkDeviceStatus enumerations.
Or, you could prompt the user to make the change by explaining how to access the setting using Windows Key + I, Change PC Settings, Wireless, Airplane Mode.
Here is a code snippet to get the NetworkConnectivityLevel which will likely give you what you need to know. I don't know if there is a way to change it. I would doubt it because you would need to also provide a way to pick a network to connect to.
public static NetworkConnectivityLevel GetNetworkConnectivityLevel()
{
ConnectionProfile profile = NetworkInformation.GetInternetConnectionProfile();
var ncl = NetworkConnectivityLevel.None;
if (profile != null)
{
ncl = profile.GetNetworkConnectivityLevel();
}
return ncl;
}

Marketplace in Windows Phone 7 Emulator

I'm just wondering if there is a way to download some apps for the emulator. The thing is that we're about to start our own application and we want to make sure we're doing everything 'Windows Phone 7 Compliant'. I want to go through some apps and see what / how they do stuff; like going to the settings, animations, navigations, etc.
Chris is correct, there's no marketplace access in the emulator.
The best thing you could do to check compliance of your app is to review the UI Design Guidelines and App Certification Requirements.
Please note that, you will not able to donwload app there, but this code will help to see MarketPlace on the Emulator.
Create a Sample Console App, Add Reference to C:\Program Files (x86)\Common
Files\microsoft shared\Phone Tools\CoreCon\10.0\Bin\Microsoft.Smartdevice.Connectivity.dll 
In the main method paste following code.
DatastoreManager datastoreManager = new DatastoreManager(1033);
Platform platform = datastoreManager.GetPlatforms().Single(p => p.Name == "Windows Phone 7");
Device device = platform.GetDevices().Single(d => d.Name == "Windows Phone Emulator");
device.Connect();
Guid appID = new Guid("{5B04B775-356B-4AA0-AAF8-6491FFEA5630}");
if (device.IsApplicationInstalled(appID))
{
RemoteApplication app = device.GetApplication(appID);
app.Launch();
}
Console.ReadLine();
I got the appid by using ILSPy for Windows Phone Library.
Links which helped me.
http://christian-helle.blogspot.com/2010/11/how-to-launch-marketplace-in-windows.html
http://justinangel.net/WindowsPhone7EmulatorAutomation
No, you can't today. You can check out design guidelines at developer.windowsphone.com.
Windows Phone 7 devices have started appearing in the market. You should plan to get hold of one. I have done most of my Windows Phone 7 app development using the emulator. When I got my hands on a device few weeks ago, I started testing testing the apps and found a number of issues related to performance, network connectivity, etc. Therefore, it is really beneficial to test applications on a real device before submitting to the Marketplace.
Though the question was initially targeting Windows Phone 7, it might be interesting to other visitors to know that the WP8 emulator does have marketplace access.

Windows Phone 7 Settings

I've noticed that in the Phone 7 Beta emulator there is a settings application. It contains an "applications" panel. This seems to imply that we should be writing settings plugins so that settings for all apps are managed centrally, similarly to how the iPhone settings work.
Does anyone know how we write/register these plugins? Or if I'm on completely the wrong track?
Thanks!
All settings and configuration for any application you create should be managed from within that application.
This is different from the iPhone where settings and configuration are considered separate and should be managed in separate places.
The Settings "application" on the device/emulator contains system settings and what it calls "application" settings. What are termed applicatoin settings actually relate to hub settings (plus IE & Search).
From the UI Design and Interaction Guide for Windows Phone 7 version 2.0 (page 66 - System and system application settings)
"Application settings must be
implemented within the application
itself."
MSDN: How to: Create a Settings Page for Windows Phone
Edit:I just tried the SettingsSample and that doesn't appear in the OS settings page but I think that is the plan in the final SDK this functionality should be available.

Resources