Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

I am trying to rename a column in an SQLite database (SQLiteOpenHelper) in my Android app. The code I am using is: db.execSQL( "ALTER TABLE $MY_TABLE_NAME RENAME COLUMN $OLD_COLUMN TO $...
User Technozer's user avatar
0 votes
0 answers
43 views

import { View, TextInput, Text, Pressable, StyleSheet } from 'react-native'; import { useEffect, useState } from 'react'; import Ionicons from 'react-native-vector-icons/Ionicons'; import initDB from '...
DipTheDi's user avatar
1 vote
1 answer
59 views

I am trying to locate the database created by the following code on my Android device, public class DBAdapter extends SQLiteOpenHelper { public DBAdapter(Context context, String name, SQLiteDatabase....
portsample's user avatar
  • 2,184
0 votes
1 answer
87 views

I'm trying to migrate data from an old SQLite database into my Room database at the time of creation. The old database was created by greenDao, and I want to import its data into a new Room-managed ...
Yiwei's user avatar
  • 1
2 votes
2 answers
104 views

I have an android java app that uses a SQLite internal database with a database that is located in the asset folder. So I "manually" copy the database in the constructor. My question is, if ...
VanessaF's user avatar
  • 717
0 votes
0 answers
31 views

I'm working on an Android app where users can select a city, and based on that, the app downloads a ZIP file containing a prebuilt SQLite database specific to that city. After downloading and ...
Yatri Intern's user avatar
0 votes
0 answers
77 views

We've recently encountered this crash but haven't been able to identify the root cause, as the error appears to be coming from WorkManager. Workmanager version: androidx.work:work-runtime-ktx:2.7.0 ...
yorispr's user avatar
0 votes
0 answers
23 views

I have an SQLite3 query which I have optimized to run very fast on a large data set (>20M records). The actual query looks like this: SELECT ROUND(F1, 4) AS F1, ROUND(F2, 4) AS F2 FROM ( SELECT ...
Michael's user avatar
  • 9,511
0 votes
0 answers
28 views

I am trying to export date in my android app from SQLite database to CSV. But the data in database contains accents (diacritics) as they are in slovak language. My export already works, but when I ...
Darksymphony's user avatar
  • 2,757
0 votes
1 answer
154 views

I'm exporting an Android game from Godot 4.4dev3 with SQLite and having issues getting it to work. It works on desktop. It always results in a DllNotFound error. I am only targetting arm64-v8a on the ...
Martin Lyne's user avatar
  • 3,095
2 votes
2 answers
60 views

I tried the following code but it does not appear to work. public DataBase(Context context) { super(context, getDatabasePath(context), null, DATABASE_VERSION); this.context = ...
nadra's user avatar
  • 21
1 vote
1 answer
136 views

I am using Room (version 2.6.1) with a @Fts4 annotated @Entity to support full text search (which works perfectly well). This is my entity and this is the version that Room automatically created to ...
flauschtrud's user avatar
0 votes
1 answer
131 views

I have two identical errors in one line using SQLCipher. I am checking the password for correctness. If the parameter is entered incorrectly, two exceptions occur. I looked at this page to see if the ...
bgdckvgn's user avatar
0 votes
1 answer
112 views

I have my database created at /data/data/<app_packagename>/databases/dbfile by react-native-sqlite-storage i can see this file with Android Studio device explorer and the db works fine i need ...
riane riri's user avatar
1 vote
2 answers
154 views

I am developing an application that will work for both desktop and android with Jetpack compose multiplatform. I am new to multiplatform, I was an android developer before, but I did not need to save ...
mkysln's user avatar
  • 49
0 votes
1 answer
1k views

I have downloaded the extension I want in sqlite3 which is spellfix and when I open sqlite3 to enable it the cli is not able to recognize the sqlite function Not sure how to load the extension ...
Abdo Sabry's user avatar
0 votes
0 answers
28 views

App developer noob here. I'm trying to build a simple .NET MAUI app using VS 2022 that has a SQLITE database as an embedded resource. I'm using the sqlite-net-pcl package. I have a repository called ...
Andrew Dvorak's user avatar
3 votes
1 answer
169 views

I'm trying to retrieve a long string saved in my Room database table. But I'm observing that the DAO query only returns the first 5,000 characters of that string. I can see the full 11,000 characters ...
Prof's user avatar
  • 716
1 vote
1 answer
104 views

I don't know SQL much, so I need help. I have three tables RoomTrains, RoomSchedule, and RoomStations in SQLite. I want to fetch data from these three tables. RoomTrains RoomSchedule RoomStations I ...
Pawandeep Singh's user avatar
2 votes
1 answer
604 views

I have an app created in maui (.NET 7). Now I tried to update to .NET 8 and updated ALL NuGet packages. From now, I'm unable to open connection to SQLLite internal DB public const SQLite....
Denis De Pauli's user avatar
0 votes
1 answer
153 views

For older versions of android < 10, upserts do not seem to be working. I am trying to run a simple upsert and constantly getting this syntax error when it gets converted into SQL: near "ON&...
user17443811's user avatar
2 votes
2 answers
8k views

Here's my coding import * as SQLite from 'expo-sqlite'; const db = SQLite.openDatabase('myDatabase.db'); db.transaction((tx) => { tx.executeSql( 'CREATE TABLE IF NOT EXISTS users (id ...
C CB CCC's user avatar
0 votes
1 answer
98 views

I am working on a streak counter functionality, the streak counting logic is working fine, but the data for last login date and last streak is not being fetched proplerly. What could be the possible ...
Tauqeer's user avatar
  • 15
0 votes
2 answers
202 views

Is querying using composite primary key possible with Room? @Entity( tableName = "market_cap", primaryKeys = ["assetId", "timestamp"] ) data class ...
Bitwise DEVS's user avatar
  • 3,851
0 votes
2 answers
621 views

I'm trying to create a counter for a card game, and I'm trying to store the "Matches" with the points on a Database. I have installed the nuget package sqlite-net-pcl, and I'm getting the ...
Nikolas G.'s user avatar
3 votes
0 answers
602 views

This is part question part answer. Ive spent several days trying to find answer to this problem. Using VS2022 maui targetting androidn and ios. This problem seems to appertain to Android though I ...
john murray's user avatar
0 votes
2 answers
222 views

I have a project where i have to export coordinates data into a GPKG with media as blob from my app, so it can be opened in QGIS. I have no experience at all in this field and have been battling for ...
Pierre's user avatar
  • 101
0 votes
1 answer
115 views

After my app release, the following crash occurred. Fatal Exception: android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1802 SQLITE_IOERR_FSTAT[1802]): , while compiling: PRAGMA ...
thesquare12's user avatar
0 votes
2 answers
43 views

In this app the login screen has 3 buttons forget password, sign in and sign up the explicit intent for sign up is working properly but for forget password it force closes the app LoginPage.java ...
Harsh Kukadiya's user avatar
0 votes
1 answer
27 views

I have a null object reference but object exist. My model public int getId() { return id; } public void setId(int id) { this.id = id; } public String ...
Gamat's user avatar
  • 1
-1 votes
1 answer
48 views

I am currently working on an android application where i have to register new users into sqlite db and users enter their details into editText and we need to fectch entered data and store it in db the ...
Harsh Kukadiya's user avatar
0 votes
1 answer
156 views

Hey all I am trying to get this SQlite query to work in my Android app but for some reason its giving me the error of: no such function: json_object (code 1): , while compiling But it works in my DB ...
StealthRT's user avatar
  • 10.6k
0 votes
1 answer
55 views

I'm facing an issue with comparing a hashed email value stored as a BLOB in an SQLite database with a hash generated from an email address in my Android application. Here's a simplified version of my ...
Javier Jordán Luque's user avatar
1 vote
1 answer
125 views

I am using the following code for deleting SQLite database table. Apparently, there is a message that the table has been deleted, but when the app is run again, the table is shown again. ...
Maria's user avatar
  • 371
1 vote
1 answer
48 views

I am developing a mobile application in Android Studio. I have a "BreakfastDatabaseHelper" class for an SQLite database. Initially, I created the "breakfast" and "...
Ramil Gabibov's user avatar
0 votes
0 answers
51 views

In my Android app I have a SQL database. The user adds some data in app and he is able to backup the db to Google drive. This works fine, I am doing it like this example: String Path = ...
Darksymphony's user avatar
  • 2,757
-1 votes
1 answer
84 views

I read similar questions and answers, but none working for me. I am trying copying sqlite database from assets folder to application data folder, but this always fail, because target database file is ...
Jozo121's user avatar
  • 43
3 votes
0 answers
40 views

Consider an application is not a singleton (android:singleUser=”false”) in android device and it has stored certain information in the SQLite DB under a particular user. When the user switch happens ...
Manoj Kumar S's user avatar
0 votes
1 answer
41 views

This is my code but no results String sqlQuery = "WITH Ranked AS (SELECT *, ROW_NUMBER() OVER(PARTITION BY " + COLUMN_NAME + " ORDER BY " + COLUMN_NAME + &...
João Marques's user avatar
0 votes
1 answer
106 views

I have a class, "Course", which I recently changed to consolidate some attributes into another class, "Assessment". The attributes for Course now include "public Assessment OA&...
Dylan Blackhorse-von Jess's user avatar
1 vote
2 answers
44 views

If I dont have any type (the object) in my db then the app run normally, but after I add the fist thing to the db it crash right away and if i run it againt it still crash. I don't know what to do. Is ...
Random guy's user avatar
1 vote
0 answers
27 views

how do I populate a spinner to depend on spinner data in a different activity?In android studio using java and also with sqlite db. I already have both spinners but I am struggling to make the second ...
Lornah Ombati's user avatar
1 vote
1 answer
83 views

I have these Entities I would like to insert in the database: It seems I can't get to build the nested entities right. I need your help in this [1] ArticleEntity @Entity( tableName = "articles&...
Abuzaid's user avatar
  • 1,005
-1 votes
1 answer
109 views

`Hello so i'm a noobie coder and im trying to code this mobile app on android studio that tracks ur current location and then sends it over to sqlite database when the "start journey" button ...
q1an. qian's user avatar
1 vote
1 answer
99 views

I'm trying to export my SQLite database in order to import it as a backup after reinstall, but every time the export success, but when I want to import the file after I reinstall the app, It doesn't ...
ali al3mari's user avatar
0 votes
1 answer
75 views

I was implementing a Toast method in the DatabaseHandler.kt class in android but the error came out that None of the functions can be called with the arguments supplied that is the Toast.makeTest() ...
Felix Njuguna's user avatar
0 votes
1 answer
36 views

The app crashes when i click on the item that should get me to this listview activity, I have NO idea what it is that I'm doing wrong or what I need to do to correct it. here is my CursorAdapter ...
abdouz19's user avatar
1 vote
0 answers
119 views

I am trying to write testcase for room database in kotlin for Android. With below implementation, error occurs DummyDatabase.kt internal abstract class DummyDatabase : RoomDatabase() { ...
Yash's user avatar
  • 47
1 vote
2 answers
43 views

In my SQLite DB Table I have rows with column month. The column might contain one month only, but also multiple months separated by asterisk. E.g. 1st row MONTH: 1* 2nd: 3*4*9* 3rd: 12* 4th: 2*5* ...
Darksymphony's user avatar
  • 2,757
1 vote
2 answers
976 views

In Adroid I am using retrofit2 call to my server to obtain data. In onResponse after checking the version in DB I am dropping and recreating tables in DB and then inserting data. Everything works fine,...
Darksymphony's user avatar
  • 2,757

1
2 3 4 5
166