Try following this one:-
if(strDistance.equals("")||strTime.equals("") {
txtError.setText("Please insert the distance and time");
}
solved android-if condition doesn’t work
Try following this one:-
if(strDistance.equals("")||strTime.equals("") {
txtError.setText("Please insert the distance and time");
}
solved android-if condition doesn’t work