title: How to get all table names in android sqlite database?
body: <p>I have tried this code</p>
  <pre><code>Cursor c=db.rawQuery(&quot;SELECT name FROM sqlite_master WHERE type = 'table'&quot;,null);
  c.moveToFirst();
  while(!c.isAfterLast()){
      Toast.makeText(activityName.this, &quot;Table Name=&gt; &quot;+c.getString(0), 
          Toast.LENGTH_LONG).show();
  }
  </code></pre>
  <p>But it throws the error:</p>
  <pre><code>&quot;android.database.sqlite.SQLiteException: no such table: sqlite_master(code 1):, while 
  compiling: SELECT name FROM sqlite_master WHERE type='table'&quot;
  </code></pre>
  <p>How to fetch all the table names?</p>