简体   繁体   中英

How To Save Data In Android's Internal Storage On A Click Of A Button using C#(Xamarin)

I want to save some kind of data on a click of a button to the internal memory of the android. Actually i want to create the backup of the data. Is there any such way? Please help me with restoring of the backup as well.

Thanks in advance.

If your data is Simple string then you need to create one Dependency Service in Xamarin Forms project and implement it into Android Project. In Android Project use shared preference for save and retrieve data.

For Dependency service - https://developer.xamarin.com/guides/xamarin-forms/dependency-service/introduction/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM