It's quite simple problem but I am begginer and i have problems with it. I have 2 tables in database matches id, team1id, team2id, score, date ...
It's quite simple problem but I am begginer and i have problems with it. I have 2 tables in database matches id, team1id, team2id, score, date ...
My question can be considered as a continuation of What is the difference between inserting data using ContentValues and Raw SQL in SQLite Android? M ...
I am using Room to manage SQLite databasae in my app. The thing is that I am migrating a project, in which I download some data from a private webserv ...
Next code for deleting a file which my app owns works ok, there is no exception RecoverableSecurityException because the file was created by my app (u ...
I have data of contact locally in the app, I want to create a contact object and share it as v-card or vcf file to other phone using whatsapp, faceboo ...
I am new with Android Sqlite Database. I have created a database with SQLite in Android and I have a table Student_details which use a foreign key of ...
I have an SQLite table with a column named 'group'. I've tried delimiting with single-quotes and square brackets. Each time, it inserts a '0' with no ...
I have a table below: What I want to know is how can I insert data into my Owner table and put as well the task_id FK from my TASK_TABLE? This is u ...
I'm writing a ContentProvider class (for a book inventory) and got stuck when checking for validity of the entries in the insert() function. If the va ...
I'm still fairly new to Android Studio and I have looked at this question in different forums but I haven't exactly found one that pertains to my prob ...
I'm trying to retrieve data from CSV to SQLite DB, all the Strings are properly saved. But Integers and Doubles are not, all of them saves as null. Bu ...
I have a method for saving the values to ContentValues from remote server data as shown below: In the last line the platform.company() value is nul ...
I am trying to insert data into the SQLite database and for that I have written a simple method to insert the data that I get from the API as shown be ...
I am trying to add event automatically but I need calendar id for this If I add event to calendar with id = 1 sometimes it does not exist or does not ...
What is the effective way to update all records in the database. I try to update all rows for the same key independent from table id, like this: Up ...
I'm following a tutorial about content providers and, in a specific code, they inserted some data using a bulkInsert method. They also used a Vector v ...
db.insert(table_name,null,contentValues); is always returning -1 and it is not inserting the values in the databases. Can you please help me to figu ...
I have a TOTALCOUNT table with a PK _id column and an integer column "CARDNUM". I want to set the default value of CARDNUM to zero. And then increment ...
Keep getting this error: I am trying to insert values into my SQLite database when its being created. I know I should be using a prepopulated datab ...
I have a ContentValues that I'm parsing for data. I just received a very strange crash report: Fatal Exception: java.lang.NullPointerException: At ...