I save my edditext text:
final EditText Zipcodeinput = (EditText) findViewById(R.id.Zipcode);
SharedPreferences settings = getSharedPreferences("cars4sale",0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("zip", Zipcodeinput.getText().toString());
editor.commit();
I want to use the string “zip” to set the android:text=” ” for one of my Buttons. I’m don’t know how to go about this I’ve read about layoutinflator but it seems overly complex for what I’m trying to do.
Thanks for the help in advance,
-Nick
First you would find the Button in question
and then use the setText method to change its text