android Shared Preferences issue
<p>i want to force use to fill Settings Page in two cases</p>

<p>1) when user first launch Application 
2) when database version is change i want that setting page should be filled first before proceding </p>

<p>in my Setting class i set shared preferences  "false" , and then i check it in below code</p>

<p>class setting //main class
 String flag = sharedPreferences.getString("CreatedFlag","");</p>

<pre><code>     if(flag.equals("true"))
       {
            // Move to second activity
            Intent i =new Intent();
            i.setClass(someclass.this,otherPage.class );
             startActivity(i);
            finish();
       }
     else
     { // Stay on Settings page }
</code></pre>

<p>Problem : it run fine when user first launch application ,it show setting page and fill tht page ,
but when user run application second time it show setting page again ,coz shared preference still have true value ,
thn again user run app 3rd time Shared Preference have update value which is false ,and show other page </p>

<p>what i want is tht Setting page show only once if its there is no setting define ,other wise it goes to home page </p>

<p>need help , </p>
