1

Android : SharedPreferences not working

view story
linux-howto

http://stackoverflow.com – I just implement a SharedPreferences. Here's my Java code SharedPreferences sp = getSharedPreferences("adsBannerFull", MainHelloballi.MODE_PRIVATE); SharedPreferences.Editor editor = sp.edit(); editor.putBoolean("isItFirstTime", true); editor.commit(); if (sp.getBoolean("isItFirstTime", false)){ closeButton = (ImageView) findViewById(R.id.close_button); adsbannerFull = (WebView) findViewById(R.id.adsbanner_full); adsbannerFull.setVisibility(View.VISIBLE); adsbannerFull.setWebViewClient(new WebViewClient(){ @Override public boolean shouldO (HowTos)