Thursday, January 2, 2014

How to sovle problem "The app has declared access to network capabilities and no privacy statement was provided in the Windows Settings Charm."

Simplest way:

SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested;

private void SettingsCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
    var privacyStatement = new SettingsCommand("privacy", "Privacy Statement", x => Launcher.LaunchUriAsync(
            new Uri("http://some-url.com")));

    args.Request.ApplicationCommands.Clear();
    args.Request.ApplicationCommands.Add(privacyStatement);
}

Reference
http://stackoverflow.com/questions/13055381/privacy-statement-windows-8-charm-settings

Tuesday, December 31, 2013

How to wrap up a website into a Windows Store app?

1. In Visual Studio 2013, create a new C# blank app project
2. Drag a WebView into your app’s XAML

3. Add following code into your MainPage.xaml.cs file
webView1.Navigate(new Uri(@"http://myevents.apphb.com/"));

Reference:
http://msdn.microsoft.com/en-us/library/windows/apps/hh868173.aspx

Monday, December 30, 2013

How to fix 0x0000000A while install Windows 8 on Virtualbox?

Enable two options in your computer BIOS setting

Virtualization
+[x] Virtualization Technology
+[x] VT-d Feature

Monday, December 23, 2013

How to deal with “An error occurred on the server when processing the URL” problem for classic ASP?

This is a generic error for classic ASP hosted on IIS 7.

Go to IIS Server feature: ASP
Enable option: Send Errors to Browser

Then will find underneath real problem