예제 #1
0
        private async void Sample_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            Token = await StorageInterface.PickExternalStorageFile_NewFile("log.txt");

            await StorageInterface.WriteToKnownStorageFile(Token, "acc;accX;accY;accZ;alt;baro;compMN;compTN;compAC;gyroX;gyroY;gyroZ;pitch;roll;yaw;sos;ts(acc);isFast\r\n");

            UserInteraction.ShowToast("Sensors", "INIT DONE!");
        }
예제 #2
0
        private async void ExportSingleFile(object sender, RoutedEventArgs e)
        {
            for (int i = 0; i < Files.Length; i++)
            {
                if (sender == ExportButton[i])
                {
                    String Token = await StorageInterface.PickExternalStorageFile_NewFile(Files[i].DisplayName);

                    try
                    {
                        await Files[i].CopyAndReplaceAsync(await StorageInterface.GetStorageFileFromToken(Token));
                    }
                    catch (Exception ex)
                    {
                        ex.PrintStackTrace();
                    }
                }
            }
        }