خوب کاری که sharedPreferences میکنه همینه
تو پروژه آموزشی اول mIsPremium را برابر false قرار گرفت و گفتیم اگه true شد کاربر ویژه هست :

boolean mIsPremium = false;


		mIsPremium = preferences.getBoolean(KEY, false);
if (mIsPremium == true) {
updateUi();
return;
}



بعد از پرداخت متد updateui که اجرا میشه مقدار false را به true تغییر میده و ذخیره میکنه که با دیگه برای ورود به برنامه هم به اینترنت نیازی نیست.

			// change the mIsPremium to true
SharedPreferences.Editor newtask = preferences.edit();
newtask.putBoolean(KEY, true);
newtask.commit();