Varundroid
Varundroid

Reputation: 9234

Android - Which method is suitable for implementing getDefaultSharedPreference()?

I just want to know, if i have a Default SharedPreference then where should I read them? In onResume() or onStart()?

And where should I make a check that preferences has been changed or not?

Upvotes: 0

Views: 122

Answers (1)

Wroclai
Wroclai

Reputation: 26925

I just want to know, if i have a Default SharedPreference then where should i read them?

It depends on your needs. Usually, in onCreate().

and where should i made a check that preferences has been changed or not?

You should have an onSharedPreferenceChangeListener in your application.

Upvotes: 1

Related Questions