Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Internal storage VS Shared preferences

Is there a difference between storing service authentication token in Internal storage (in file) and in Shared Preferences?

like image 329
skayred Avatar asked Aug 16 '11 09:08

skayred


2 Answers

Not really, it's a matter of convenience. With shared preferences you don't need to handle file IO.

like image 123
MByD Avatar answered Oct 14 '22 15:10

MByD


shared preference will be better than to store credential in file, to open and readfile is tedious compare to use of share preference

like image 29
Mohammed Azharuddin Shaikh Avatar answered Oct 14 '22 15:10

Mohammed Azharuddin Shaikh