I am working on my application and I want to change the color of their UI with the click of button.....Like this....
Button change=findViewById(R.id.change_UI);
change.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//My code to change the color of UI
//like blue to green-red-black etc (randomly)
}
The above things are working fine but when I again restart my application all things were same as I open it first time...with blue color UI.
I am new for development and i know this question is not so much interested but please help to solve this problem.