I am trying to write an if statement to determine if the results are null.
TabSpec spec4=tabHost.newTabSpec("Tab 4");
listData[c.getPosition()] = spec4.setIndicator(c.getString(4)) + "\n";
spec4.setContent(R.id.tab4);
if (spec4.setIndicator(c.getString(4)) == null){
tabHost.addTab(spec4);
}
Statement never seems to return true though. I can see in the database its null.
any ideas?
I had to change == to .equals(“null”) and it worked!