It must be noted that we can’t have two applications with the same package name, but we can have 2 different db names under different packages. It only matters on root level and the root level handling is done with the help of the package name. It doesn’t matter, because database resides on the application’s package name, which should not be conflicting even if a sub-folder in the same name has been created. It’s very much like framework handling.Ĭan we have the SQLite database object? What if my db name has conflict with another db name object? It doesn’t matter, as long as there is no earlier version installed into the device. Yes, because we are not having any version already installed on to the device. In such a scenario, if user1 on version upgrade is called and for user2 create method is called, are all the methods from android? If user1 has installed my application and it is an upgraded version for DB and subsequently user2 is installing new application and the user1 is upgrading the app. No, the permission is not required, since we are working on the application resources we don’t have to seek permission. Is it required to have user permission to upgrade db version? If it has a higher version, it will call upgrade, if not, then it will do nothing. Once the latest version of the apk is downloaded, it will check the database already installed. Once we install an application, it will create OnCreate and the method apk is uploaded onto Google play store. If in case, the database exists and version in updated, it will call OnUpgrade(). The getwriteabledatabase() is called and if the database does not exist, it will OnCreate. The SQLite open helper class gives the name and version in the constructor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |