Skip to content
Advertisement

Tag: sqlite

save text file in sqlite android

I want to save text file in sqlite android but it is giving an error android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: at line long result = db.insert(TABLE_NAME,null,cv);. The path gives this in log Download/Link_on.txt and the readFile(path) returns [49, 10, 48, 48, 58, 48…… but it is still failing to save the text file in db. Thanks for the help. Answer

SQL Insert query not storing upon button press

I am creating a project in which a database can be read and modified through an app. The tutorial for the insert section has lost me though. Using lowercase to begin a word causes a syntax error, fine. But, when capitalising the first letter it is accepted. The page then closes and takes you back to the main menu without

How to update two tables in one query with SQLite [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last year. Improve this question This is my first solution to my problem but it gives me a little

Android: Should I use local Storage or SQLite (or similar)?

I am just starting to learn Android Development. I have to develop something similar to a Log APP where the user can save information.This is student project, so I don’t have to use Users/Passwords, instead I am allowed to save the info using the Local Storage of the device. The problem is that I will need to extract that info

Advertisement