address == HC05
This is reference compare in java. You want String compare.
Try address.equals(HC05)
instead. (Similarly, address != HC05
should be !address.equals(HC05)
or in this specific case, you can replace the else if
with just else
)
For reference: Java comparison with == of two strings is false?