Showing posts with label Mobile. Show all posts
Showing posts with label Mobile. Show all posts

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, January 28, 2013

iPhone 4 simulator

http://iphone4simulator.com/