Android TextView getText() method -
suppose have declared textview username. , have not assign string username.settext() , before if called username.gettext() method, whats going return ??
it return null because nothing in there. .gettext() return text textview displaying.
i first check textview username not null following:
if (username.gettext() != null){ //textview not null //do } i hope helpful you.
Comments
Post a Comment