title: Android: load sqlite database content to webview
body: <p>I have an <strong>sqlite</strong> database in which I have a content I want to load in <strong>webview</strong> ,,
  as I want to <strong><em>select from database and show in web view</em></strong>,, Is there any way to do so ?</p>
  
  <pre><code>public class TataworatYawmeeh extends Activity {
      WebView webView;
      String javascrips;
  
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);   
          setContentView(R.layout.tataworat);
  
          webView = (WebView) findViewById(R.id.tatworatWebView);
          webView.setBackgroundColor(0x00000000);
  
          try {       
              DataBaseHelper myDbHelper = new DataBaseHelper(this);
  
              myDbHelper = new DataBaseHelper(this);
  
              try {
                  myDbHelper.createDataBase();
  
                  String selectQuery = "SELECT  * FROM 'nnn'";
                  SQLiteDatabase db = myDbHelper.getReadableDatabase();
                  db.execSQL(selectQuery);
              } catch (IOException ioe) {      
                  throw new Error("Unable to create database");
              }
  
              try {
                  myDbHelper.openDataBase();
  
              } catch (SQLException sqle) {
                  throw sqle;
              }
          }   
      }
  }
  </code></pre>