Saving file to phone instead of SD card

前端 未结 4 1994
孤街浪徒
孤街浪徒 2021-01-20 14:45

In my app I save an XML file to the user\'s SD card by doing File newxmlfile = new File(Environment.getExternalStorageDirectory() + \"/Message.xml\");

B

4条回答
  •  爱一瞬间的悲伤
    2021-01-20 15:17

    You can use openFileOutput to get an access to the internal storage. For more info, you should read the documentation on internal storage.

提交回复
热议问题