getting table info(exist/not) from cursor
<p>in my activity ineed to check whether the table exist or not for that im using</p>

<pre><code> Cursor cursor = marksdb.rawQuery("SELECT count(*) FROM sqlite_master WHERE type='table' AND name='"+classt+"'", null);
</code></pre>

<p>im getting 1 if table exist 0 otherwise
for that i need check value in cursor for that im using</p>

<pre><code>if(cursor.getCount()==1){
        // get values from cursor here
         callclasstb();
        }
     else{
         tv.setVisibility(View.VISIBLE);
        subjectet.setEnabled(false);
        markset.setEnabled(false);
        markssp.setEnabled(false);
     }
</code></pre>

<p>but in all cases im getting value 1 because getcout() returns a value 1 r 0 and </p>

<pre><code>callclasstb();
</code></pre>

<p>is not executing what condition i need to write in if{....} to make it execute</p>
