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!"); }
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(); } } } }