I am building an android app where users can choose what amount they want to pay for an item. But I do not want to sell the items to cheap, so minimum accepted amount is .20
.
Based on previous questions (here) I have written so far
if(editText.getText().toString().trim().isEmpty() ||
Integer.parseInt(editText.gettext().toString()) > 0.2 )
{
//Error message for example
}
I want to display the currency so that the user know in what currency they are about to pay the amout they choose. I found this post but I do not know how to use the information in my code above.
I am new to this; sorry if this is a dumb question.