Skip to content
Snippets Groups Projects
Commit a9cdc8ac authored by darshanxyz's avatar darshanxyz
Browse files

Shared Preferences

parent dd126151
Branches
No related tags found
No related merge requests found
...@@ -120,18 +120,18 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS ...@@ -120,18 +120,18 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS
// SharedPreferences preferences = getSharedPreferences("ActivityPREF", Context.MODE_PRIVATE); SharedPreferences preferences = getSharedPreferences("ActivityPREF", Context.MODE_PRIVATE);
//
// if(preferences.getBoolean("activity_executed", false)){ if(preferences.getBoolean("activity_executed", false)){
// Intent intent = new Intent(this, MainActivity.class); Intent intent = new Intent(this, MainActivity.class);
// startActivity(intent); startActivity(intent);
// finish(); finish();
// } }
// else { else {
// SharedPreferences.Editor edit = preferences.edit(); SharedPreferences.Editor edit = preferences.edit();
// edit.putBoolean("activity_executed", true); edit.putBoolean("activity_executed", true);
// edit.commit(); edit.commit();
// } }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment