I have two EditText fields (suppose they are empty) and I will write the text there and it will be remembered there, in the sense that when I go out of the window and go back there will be text entered there. Thank you for your help :)
Button button1;
Button button2;
TextView devices;
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.change_url);
    button1 = (Button) findViewById(R.id.button9);
    button2 = (Button) findViewById(R.id.button10);
    button2.setOnClickListener(new View.OnClickListener(){
        @Override
        public void onClick(View v){
            TextView buildings = (TextView) findViewById(R.id.buildings);
            String a = buildings.getText().toString();
            buildings.setText(a);
        }
    });
}
 
     
     
    