File or Directory creation with Xamarin.Forms

File or Directory creation with Xamarin.Forms

BY 14 May 2020 Tizen .NET

Hi !

 

I have tried to create a directory or file for my app specific files to download from our server.

The app is the Cross Platform of  tizen wear, android, iOS.

 

In the shared project, with the path of Environment.GetFolderPath(Environment.SpecialFolder.Personal )

the drived path can be easily obtained, accessed and created easily in all platform except for tizen.

 

The path of 

Tizen.Applications.Application.Current.DirectoryInfo.Data

was commented in the forum “Save file in Tizen with Xamarin.Forms” but 

Not easy to use it in my code.

 

In your downloader example of Tizen-CSharp-Samples-master,

DependencyService.Get<IDownload>().GetDownloadedPath() looks a proper path to download any file.

(“/opt/usr/media/Downloads/Files.txt”)

 

I need the downloaded files have to be kept for long enough my apps survives in the watch.

Please guide us how to create our own path in the Tizen Watch.

 

 

Thanks.

 

Written by