简体   繁体   中英

SharedPreferences and Samsung S3

I have been trying to locate my SharedPreferences via Eclipse and Astro File Manager but have not had any luck.

I have looked in the following location but still cant located them.

/data/data/YOUR_PACKAGE_NAME/shared_prefs/

If I use my DroidX they are located in this directory.

This is how I save them

SharedPreferences prefs = Login.this.getSharedPreferences("mysharedprefs", Activity.MODE_PRIVATE);
Editor editor = prefs.edit();
editor.putString("username", username.getText().toString());
editor.putString("password", password.getText().toString());
editor.commit();

Is there a difference in how Samsung allows access to the file system that is different than for example Motorola DroidX?

Thanks in advance for your help.

在Samsung设备上,您可以在/dbdata/databases/package.name/shared_prefs/package.name_preferences.xml找到共享首选项。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM