Getting stuck in this method  returning wrong value from table
<pre><code> public int countGuestvisitnew() throws SQLException {
    Log.v("", " count when 1111 click = ");

    try {

        Cursor c = db.rawQuery("select count(*) from guestvisitsnew", null);
        if (c.getCount() &gt; 0) {
        int f=c.getCount();

            Log.v("", " count1212121 whenbus click =/// " + f);
            return f;


    } 
    }catch (Exception e) {
        e.printStackTrace();
    }

    return 0;
}
</code></pre>

<p>Always getting count = 1,but there is no data in guestvisitsnew table.How can I get the row count from the table.
Please help me.</p>

<p>Thank you.</p>
