Questions tagged as 'sqlite'

1
answer

Back up content from a DB in /data/data/package/databases/db.dbname in sdcard?

My application creates a db, what I want to do is a backup of what it contains then I do the following code: File CarFile = new File("sdcard/xxxx"); if (!CarFile.exists()) { try { CarFile.mkdir(); } catch (Exc...
asked by 11.10.2016 / 02:17
2
answers

Why does my app stop when using this line of code?

This is the code of my database class. public class SQLite_OpenHelper extends SQLiteOpenHelper { public SQLite_OpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) { super(context, name, factory, vers...
asked by 08.11.2018 / 19:29
1
answer

Problem in insert SQLite

I have a project in android, in which I have to insert records in an activity and show them in a recycler, when I insert the message it is shown that it was inserted correctly, I must show that data in a second activity, when doing the query if...
asked by 22.09.2018 / 01:06
2
answers

Link several tables to another to obtain groups of records

A few weeks ago I created a database to use it in my Android app. It turns out that these two weeks I've been thinking about a problem I had, and no matter how many solutions I got, they gave me errors and I do not know what to do anymore. I'...
asked by 03.06.2016 / 15:33
2
answers

Hibernate with sqlite [closed]

I am developing a desktop application and I want to do it using Sqlite e Hibernate . Does anyone know if it is possible to integrate Hibernate with Sqlite3 ?     
asked by 17.12.2015 / 13:23
2
answers

Error generating Database in Android Studio [closed]

I get this when I give it to insert:    android.database.sqlite.SQLiteException: near "TABLETables_Telephones": syntax error (code 1) ;, while compiling: CREATE TABLETableTable_phones (idITEGER PRIMARY KEY AUTOINCREMENT, person_nameTEXTNOTNUL...
asked by 30.05.2017 / 18:53
1
answer

Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText ()' on a null object reference

I have a problem trying Iniciar sesión in my app; I register and enter the data correctly, but when I try to login, the application stops. When reading the logcat it indicates to me that it is an error in Registro.java . EditText...
asked by 31.03.2017 / 00:50
1
answer

Create new tables in SQLite

Working with NodeJS , until now, created new rows when a user was not found, and did it in the following way: const sqlite = require('sqlite'); sqlite.open('points.sqlite').then(() => { sqlite.get('SELECT * FROM users WHERE ID = ${user}'...
asked by 04.02.2017 / 01:35
1
answer

Error saving the path of the new .png created in Sqlite

I create a new .png of the image that I select from the Gallery and try to save the path in my Sqlite but I close the application once selected the image of the Gallery. EditarPersonaActivity public class EditarPersonaActi...
asked by 25.02.2017 / 14:32
1
answer

SQLite when deploying a project done in Django

I have my project done with Django and I will upload it to a server that has support for Django (obvious), but the database that I used during the development was SQLite. The Web server only supports MySQL but my question is: When SQLite i...
asked by 11.02.2016 / 20:38