SQLite DUVIDA BASIC A

-2

I'm learning sqlite and I learned how to do crud, having doubts if when I finish doing the apk and put it on the phone it will create the bank file alone and it will create and search or I have to manually create the file ?

    
asked by anonymous 26.05.2018 / 19:17

1 answer

0

Obviously your application has to be able to create and manipulate the database by itself, is not it? Have you ever wondered if your user had to go out building a bank?

For example, the following method opens or creates a database if it does not already exist and should be somewhere in your application:

SQLiteDatabase meuBanco = this.openOrCreateDatabase("nomeDoBanco", MODE_PRIVATE, null);
    
26.05.2018 / 20:02