Wednesday, 17 July 2013

Delete DataBase android sqllite

// TODO Auto-generated method stub
         public void deleteDatabase() {
             System.out.println("delete deleteDatabase calleds");
             mHelper = new MyDbHelper(context,
                      "dbname");
                 SQLiteDatabase db = mHelper.getWritableDatabase();
           
                 mHelper.close();
                 db.close();
              if (this.context().deleteDatabase("dbname") {
              System.out.println("db deleted");
              } else {
                System.out.println("not deleted");
              }
            }

No comments:

Post a Comment

Pass a HashMap from Angular Client to Spring boot API

This example is for the case where fileData is very huge and in json format   let map = new Map<string, string>()      map.set(this.ge...