Inserting values to SQLite table in Android

前端 未结 8 2062
抹茶落季
抹茶落季 2020-12-09 16:42

I am new in android app developement. I tried to insert values to SQLite database through the below code;

public class cashbook extends Activity {

    @Over         


        
8条回答
  •  有刺的猬
    2020-12-09 16:59

    You'll find debugging errors like this a lot easier if you catch any errors thrown from the execSQL call. eg:

     try 
     {
          db.execSQL(Create_CashBook);  
     }
     catch (Exception e) 
     {
           Log.e("ERROR", e.toString());
     }
    

提交回复
热议问题