Ejemplo n.º 1
0
        private async Task CollectLogs()
        {
            await logCollector.Collect(context.Device, LogsZipName);

            var fileInfo = new FileInfo(LogsZipName);

            ExploreFile(fileInfo.FullName);
        }
Ejemplo n.º 2
0
        private async Task CollectLogs()
        {
            try
            {
                var path = Path.Combine(Path.GetTempPath(), LogsZipName);
                await logCollector.Collect(context.Device, path);

                var fileInfo = new FileInfo(path);
                ExploreFile(fileInfo.FullName);
            }
            catch (NothingToSaveException)
            {
                await uiServices.ContextDialog.ShowAlert(this, "Nothing to collect", "Sorry, no logs have been found in your phone");
            }
        }