If I create a new Intent
of the same class every time I click a button, is the created activity the same?
Every time I click a button, I want to have a dialog show with a slider inside it and after I change it I want the state to be saved so that the next time I open up the dialog the state of the slider is the same.
My code for the button is this:
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent(v.getContext(), Slider_Logic.class);
v.getContext().startActivity(intent);
}
});