Does deleting a record from sq lite browser manually affect the app database ? I have not created any delete database query in my Android studio
I have created a login and registration page in Android studio using sq lite but after I delete the record from the SqLite browser I am still able to login with the same user id and password
I am trying to delete the records manually from the Sqlite browser
I tried deleting the record from sq lite browser and then clicking on write changes but I am still able to login with the same ID and password
NO. SQLite is not a server based database, it is an embedded database. That is every device (including the device running SQLite Browser) will have it's own copy of the database (which is just a file (or files as below)).
If using an SQLite tool to create or edit a database used in an App you have to have a means of transferring the database to/from the App.
The database itself is just a file (or if not properly closed 3 files if using WAL mode (W Ahead Logging)).
Typically, you would create the database in whatever tool, populate the database. Save the database, ensuring that it is a single file
To introduce the pre-populated database (i.e. the database file), typically this would be copied into the assets as part of the project.
You then need a means of copying the asset(s) from the asset to the where the database is expected to be (typically in the data.data/<the_package_name>/databases folder/directory). Typically this would be when the database does not exist.
If you are changing the database, as opposed to creating it, in a tool, then you need a means of indicating and detecting those changes so that the logic of the App can replace the database from the asset. Typically you would utilise the database version (SQLite's USER_VERSION) along with the expected version that is compiled as part of the App.
Detection of such a change, would be to open the database and extract the USER_VERSION. The you would have logic that:-
You may wish to consider the following which Can't copy pre-created db from assets