looks like result.getNotes().equals("Success")
isnt true, are you shure it should be? equals
is case-sensitive so "success" doesn't equal "Success" and also " Success " - note whitespaces
maybe you can try with this statement:
result.getNotes().toLowerCase(Locale.getDefault()).trim().equals("success")
toLowerCase
will make all your letters small caps and trim
will remove all whitespaces at beggining and end of String
also there is equalsIgnoreCase
method so it may also looks like below:
result.getNotes().trim().equalsIgnoreCase("success")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…