以文件的形式保存
以IO流的方式读写数据到文件
图源:(https://blog.csdn.net/gc1074959890/article/details/111691682)
可以保存至外部存储的私有空间或者外部存储的公共空间
当访问外部公共空间时需要添加权限
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
//applaction根标签下加入
<application
android:requestLegacyExternalStorage="true">