Sqlite DOUBT BASIC A

Asked

Viewed 27 times

-2

Guys I’m learning sqlite and I learned to do the crud taking doubt if when I finish making the apk and put on the mobile he will create alone the bank file and will create and search or I have to manually create the file ?

1 answer

0

Obviously your application has to be able to create and manipulate the database by itself, isn’t it? Ever wondered if your user had to go around creating databases?

For example, the method below opens or creates a database if it does not yet exist and must be somewhere in your application:

SQLiteDatabase meuBanco = this.openOrCreateDatabase("nomeDoBanco", MODE_PRIVATE, null);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.