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"
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"
Use the Context
to access the preferences.
context.getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE);