mirror of
https://github.com/farcasclaudiu/CompassVO.git
synced 2026-06-22 07:01:04 +03:00
added privacy policy file
This commit is contained in:
@@ -48,13 +48,13 @@
|
||||
<TextBlock>
|
||||
Version: 1.2.0.0
|
||||
</TextBlock>
|
||||
<TextBlock FontSize="16">
|
||||
<!--<TextBlock FontSize="16">
|
||||
ChangeLog:<LineBreak />
|
||||
- multiple fixes: (heading declinations, calibration crash)<LineBreak />
|
||||
- tweaks on orienteering theme<LineBreak />
|
||||
- new themes: digital and night<LineBreak />
|
||||
- new feature: taking map photo by hardware camera button<LineBreak />
|
||||
</TextBlock>
|
||||
</TextBlock>-->
|
||||
<TextBlock Margin="0, 12, 0, 6">
|
||||
Carefully designed by
|
||||
</TextBlock>
|
||||
@@ -111,6 +111,17 @@
|
||||
<TextBlock>
|
||||
Thank you for your feedback and ideas!
|
||||
</TextBlock>
|
||||
<Button Width="300"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="-10, 6, 0, 0"
|
||||
x:Name="btnPrivacyPolicy"
|
||||
Content="privacy policy">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding Path=PrivacyPolicyCommand, Mode=OneWay}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Compass VO - privacy policy</title>
|
||||
</head>
|
||||
<body>
|
||||
<H1>Compass VO - privacy policy</H1>
|
||||
<div>
|
||||
Compass VO does NOT colect and doe NOT transmit user personal data anywhere, NO user info and NO personal data is disclosed with JWP or any other third parties.<br />
|
||||
- Application needs access to device camera so the user can take a photo of a map or anybackground image he wants to use as navigation helper.<br />
|
||||
The captured image is stored in application dedicated private space inside device and is deleted if the user selects the delete command button from the interface or when the application is uninstalled.<br />
|
||||
This file is NOT sent over the wire at all times and it stays on the device only in the personal space of the user and this application, as defined by Microsoft Windows and Windows Phone Store Policies.<br />
|
||||
- Application needs access to media folder so the user can pick a topo map picture or any picture to stand in the background as helper support for navigation.<br />
|
||||
- The selected picture from media folder in NOT sent over the wire at all times and it stays on the device only in the personal space of the user and this application, as defined by Microsoft Windows and Windows Phone Store Policies.<br />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -151,6 +151,9 @@
|
||||
<Compile Include="Model\Messages\UpdateCompassUIMessage.cs" />
|
||||
<Compile Include="Model\OperationModeEnum.cs" />
|
||||
<Compile Include="Model\QuitException.cs" />
|
||||
<Compile Include="PrivacyPolicy.xaml.cs">
|
||||
<DependentUpon>PrivacyPolicy.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Service\CompassEx.cs" />
|
||||
<Compile Include="Service\CompassReadingEx.cs" />
|
||||
@@ -207,6 +210,10 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="PrivacyPolicy.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="SettingsPage.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
@@ -249,6 +256,7 @@
|
||||
<None Include="Properties\WMAppManifest.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<Content Include="Assets\Docs\privacy_policy.html" />
|
||||
<Content Include="Resources\Fonts\LCDMU.TTF">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<phone:PhoneApplicationPage
|
||||
x:Class="CompassVO.PrivacyPolicy"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
||||
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
|
||||
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
||||
FontSize="{StaticResource PhoneFontSizeNormal}"
|
||||
Foreground="{StaticResource PhoneForegroundBrush}"
|
||||
SupportedOrientations="Portrait" Orientation="Portrait"
|
||||
mc:Ignorable="d"
|
||||
shell:SystemTray.IsVisible="True">
|
||||
|
||||
<!--LayoutRoot is the root grid where all page content is placed-->
|
||||
<Grid x:Name="LayoutRoot"
|
||||
Background="Transparent" Margin="12">
|
||||
<TextBlock Text="Compass VO - Privacy Policy" FontSize="26"></TextBlock>
|
||||
<phone:WebBrowser Name="webPolicy" Margin="0, 50,0,0" VerticalAlignment="Stretch" Loaded="webPolicy_Loaded"></phone:WebBrowser>
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
</phone:PhoneApplicationPage>
|
||||
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Navigation;
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Shell;
|
||||
using System.Windows.Resources;
|
||||
using System.IO.IsolatedStorage;
|
||||
using System.IO;
|
||||
|
||||
namespace CompassVO
|
||||
{
|
||||
public partial class PrivacyPolicy : PhoneApplicationPage
|
||||
{
|
||||
public PrivacyPolicy()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void webPolicy_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
SaveFilesToIsoStore();
|
||||
webPolicy.Navigate(new Uri("/Assets/Docs/privacy_policy.html", UriKind.Relative));
|
||||
}
|
||||
|
||||
|
||||
private void SaveFilesToIsoStore()
|
||||
{
|
||||
//These files must match what is included in the application package,
|
||||
//or BinaryStream.Dispose below will throw an exception.
|
||||
string[] files = {
|
||||
"Assets/Docs/privacy_policy.html"
|
||||
};
|
||||
|
||||
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
|
||||
|
||||
if (false == isoStore.FileExists(files[0]))
|
||||
{
|
||||
foreach (string f in files)
|
||||
{
|
||||
StreamResourceInfo sr = Application.GetResourceStream(new Uri(f, UriKind.Relative));
|
||||
using (BinaryReader br = new BinaryReader(sr.Stream))
|
||||
{
|
||||
byte[] data = br.ReadBytes((int)sr.Stream.Length);
|
||||
SaveToIsoStore(f, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void SaveToIsoStore(string fileName, byte[] data)
|
||||
{
|
||||
string strBaseDir = string.Empty;
|
||||
string delimStr = "/";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] dirsPath = fileName.Split(delimiter);
|
||||
|
||||
//Get the IsoStore.
|
||||
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
|
||||
|
||||
//Re-create the directory structure.
|
||||
for (int i = 0; i < dirsPath.Length - 1; i++)
|
||||
{
|
||||
strBaseDir = System.IO.Path.Combine(strBaseDir, dirsPath[i]);
|
||||
isoStore.CreateDirectory(strBaseDir);
|
||||
}
|
||||
|
||||
//Remove the existing file.
|
||||
if (isoStore.FileExists(fileName))
|
||||
{
|
||||
isoStore.DeleteFile(fileName);
|
||||
}
|
||||
|
||||
//Write the file.
|
||||
using (BinaryWriter bw = new BinaryWriter(isoStore.CreateFile(fileName)))
|
||||
{
|
||||
bw.Write(data);
|
||||
bw.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -630,6 +630,8 @@ namespace CompassVO.ViewModel
|
||||
public RelayCommand MainPageLoaded { get; set; }
|
||||
public RelayCommand AcceptDialEdit { get; set; }
|
||||
public RelayCommand SendFeedbackCommand { get; set; }
|
||||
public RelayCommand PrivacyPolicyCommand { get; set; }
|
||||
|
||||
public RelayCommand RateMeCommand { get; set; }
|
||||
public RelayCommand OpenWebPageCommand { get; set; }
|
||||
public RelayCommand OpenWebPageVOCommand { get; set; }
|
||||
@@ -677,6 +679,7 @@ namespace CompassVO.ViewModel
|
||||
MainPageLoaded = new RelayCommand(() => MainPageLoadedAction());
|
||||
AcceptDialEdit = new RelayCommand(() => AcceptDialEditAction());
|
||||
SendFeedbackCommand = new RelayCommand(() => SendFeedbackAction());
|
||||
PrivacyPolicyCommand = new RelayCommand(() => PrivacyPolicyAction());
|
||||
RateMeCommand = new RelayCommand(() => RateMeAction());
|
||||
OpenWebPageCommand = new RelayCommand(() => OpenWebPageAction());
|
||||
OpenWebPageVOCommand = new RelayCommand(() => OpenWebPageVOAction());
|
||||
@@ -846,6 +849,11 @@ namespace CompassVO.ViewModel
|
||||
emailTask.Show();
|
||||
}
|
||||
|
||||
private void PrivacyPolicyAction()
|
||||
{
|
||||
App.Locator.NavigationService.NavigateTo(new Uri("/PrivacyPolicy.xaml", UriKind.Relative));
|
||||
}
|
||||
|
||||
private void RateMeAction()
|
||||
{
|
||||
try
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user