Writing to the internal private storage in Android

后端 未结 6 2272
粉色の甜心
粉色の甜心 2020-12-06 01:44

I am trying to save some data from my app in a simple text file on the internal private storage area (app user preferences). I have read through many questions on here (Stac

6条回答
  •  臣服心动
    2020-12-06 02:34

    Not a direct answer to your question, but nevertheless: I noticed that you don't want to store tons of data in your file. Would it be a sufficient alternative to use the Shared Preferences instead?

    And perhaps even more interesting: does the problem occur even when you write to the Shared Preferences file instead?

    http://developer.android.com/guide/topics/data/data-storage.html#pref

提交回复
热议问题