I am developing an Android application. I get String as null from webservice. I retrieve the value and store it in a String variable. Then, when I print the value using Log, for example Log.i ("tag", "` `!!! cell β" + cell) ;, I get a zero printed on the screen. Now I need that I need to check the variable for "null", and I want to display the text field without a value if it is "null". I use the following statement to check
if(!cell.equals(null) || !cell.equals("")) { _______ } else { _______ }
But the control is not part of the else part if the value is us 'null'
Please give me a solution.
Thanks in advance.
source share