How to find whether a Table in SQLite contains data or not
<p>I have created a SQLite database &amp; table in Android.
After performing all the necessary calculations , I have deleted the data from the table of the database by calling the below code.</p>

<p><strong>sampleDB.execSQL("DELETE FROM " + Constants.TABLE_NAME);</strong></p>

<p>Now , I need to write a condition to check that if no data is there for that particular table , I need to show an Alert .</p>

<p>I am unable to find the code to check the condition whether data is there or not for the TABLE , maybe how to check the size of the data within the TABLE.</p>

<p>Kindly provide hints/sample code.</p>

<p>Warm Regards,</p>

<p>CB</p>
