sqliteopenhelper - unable to see Sqlite database in my Android's FileExplore -


i creating sqlite database , when want see database using file_explorer @ time , not getting in location 2 folders present there : cache , lib , database folder not present there , point getting location , logs ,

protected void oncreate(bundle savedinstancestate)  {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_db__creation);      database db = new database(this); }  // -- sqliteopenhelper class ( extended )!  public database( context context )  {     super(context, "new_one.db" , null , 2 );     log.i("2nd class : constructor","tushar");     log.i(context.getdatabasepath("new_one.db").tostring(),"tushar");      //(data base location )     ///data/data/com.example.database_creation/databases/new_one.db }  public void oncreate(sqlitedatabase db)  {     log.i("2nd class : oncreate", "tushar");     db.execsql("create table timerecords " +"(id integer primary key, time text, notes text)"); }  public void onupgrade(sqlitedatabase db, int oldversion, int newversion)  { } 

just follow these steps,

  1. using devices, select device/emulator deploying application.
  2. go ddms-> file explorer-> data->data->see package name-> databases->here database file.

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -