I wanna save the value of my textview in a onstop
and onpause
. But the value that is in the textview
is a double
, how can cast putint
to double
or use something else for it
This is my code How can i solve this?
@Override
protected void onStop()
{
super.onStop();
savedValues.edit().putInt("price", (double)price).apply();
}