title: Retrieving the null value from Sqlite database in android
body: <p>Guys i have stored a null value in the column of sqlite database</p>
  
  <p>the value that is storing is  <code>return "null"</code> </p>
  
  <p>Now using following code to retrieve it</p>
  
  <pre><code>int i = resultSet.getInt(resultSet.getColumnIndex(columnName));
  String str = resultSet.getString(resultSet.getColumnIndex(columnName));
  boolean bool = resultSet.isNull(resultSet.getColumnIndex(columnName));
  
  if( str == null ) {
      return -1;
  }            
  return i;
  </code></pre>
  
  <p>The debugger shows the value of <code>str = "null"</code></p>
  
  <p>but this condition is not working with <code>str == null , str == "" , str == "null"</code></p>
  
  <p>anyone can give me a hit of what to do..</p>
  
  <p>Also <code>resultset.isNull</code> gives me a value of false.</p>
  
  <p>So how can i store null in database, secondly if i use "null" then how can i make this condition work.</p>