tags:

views:

172

answers:

1

dear friends,

i want to read file in dialog

can any one guide me how to achieve this?

when i use

SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE); in dialog it gives me error "method is undefined"

+1  A: 

Use the Context to access the preferences.

context.getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE);
kosokund