Storage
Ben-EJ opened this issue · 5 comments
Hello,
Is there a way to store data in tizen .net? I.E data generated by your app stored on said wearable device. As I have been looking around and have not been able to find a way to do this.
Thank you for any help provided.
:)
Hello, you can save your data in application folder of your device. could you check the AudioIOSample in Mobile folder?
To get proper path: refer to DirectoryInfo class of TizenFx (C# Device API of Tizen Platform)
https://samsung.github.io/TizenFX/API8/api/Tizen.Applications.DirectoryInfo.html
To create file: refer to File class of .netcore
https://docs.microsoft.com/en-us/dotnet/api/system.io.file?view=net-5.0
So this will work when creating wearable .net applications as well? I am creating a time table app (to learn) and I need to know how to save lessons and times to the device. I'll give the info you gave me a read. Thank you so much.
Small portion of UI Code could be different. but, there is no difference for using TizenFx and .netcore API.
Ok thank you so much. :)
How do I sort this error?
With this:
private Tizen.Applications.DirectoryInfo DI = new Tizen.Applications.DirectoryInfo();
Error:
Error CS1729 'DirectoryInfo' does not contain a constructor that takes 0 arguments
Thank you in advance