How to save preferences to somewhere other than SharedPreferences

Posted by Adrian on Stack Overflow See other posts from Stack Overflow or by Adrian
Published on 2010-03-19T21:42:36Z Indexed on 2010/03/20 10:11 UTC
Read the original article Hit count: 455

Filed under:

My application is used on multiple platforms so it saves it preferences to a file (rather than to the standard Android SharedPreferences).

Is there any easy of reusing the PreferenceActivity to save preferences to a file or is it a case of creating a whole new activity to do the job? If the latter is the case is there a layout I can use that will make the activity look like the normal preferences screen? PreferenceActivity uses com.android.internal.R.layout.preference_list_content but this doesn't appear to be available to apps for reuse.

© Stack Overflow or respective owner

Related posts about android