VaaS
VaaS

Reputation: 647

How to cache string data to sdcard?

I want to cache json string to sdcard and retrive this cache data for future using. could anyone help me out

Upvotes: 0

Views: 359

Answers (2)

Brijesh Thakur
Brijesh Thakur

Reputation: 6778

Why to Use SDcard to store the data. You should use SharedPreferences. Its easy and Fast.

Upvotes: 1

Shivan Dragon
Shivan Dragon

Reputation: 15229

Simplest way is to serialize it to a ByteOutputStream and write that on the SD card.

Upvotes: 0

Related Questions