Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum Size of SharedPreferences class

Tags:

android

I want to save a lot of strings with SharedPreferences class . These strings are quit long. I really want to know the maximum length of a string that can be save in shared preferences in android.And Also How much size of data i can store in This SharedPrefernces class.

like image 318
user1089679 Avatar asked Dec 27 '11 12:12

user1089679


1 Answers

As per android architecture there is no such limit to store data in SharedPreference. Better way is to database (SQLite) when you have to deal with huge amount of data

like image 67
Sunil Kumar Sahoo Avatar answered Oct 09 '22 04:10

Sunil Kumar Sahoo