Good day, I have a code model using intent in the following way and I want to pass it, I do not know how to use SharedReferences
unidades=(EditText)findViewById(R.id.editTextunidades);
Intent miinten = new Intent(Calculate.this, Hitorial.class);
u= unidades.getText().toString();
miinten.putExtra("u", u);
startActivity(miinten);
And in activity 2 in my case Hitorial I have
private String uni;
Bundle bundle = getIntent().getExtras();
if(bundle !=null) {
uni =bundle.getString("u");
}
What I want is to be able to use references for that value that is saved in uni, I want to save it once and have it in the app already saved and be able to operate it and have it accumulated