Questions tagged as 'android-sqlite'

1
answer

Problem with Login SQLITE Android Studio

I have been with this problem a few hours ago I do not understand in which failure I will attach the class MainActivity and the class Helper corresponding: package com.example.note.sv2; import android.content.Intent; import andr...
asked by 12.11.2018 / 22:57
0
answers

I can not restore backup of BD sqlite

Hello, I created a section in my app to make a backup copy of one of the important databases of the app. The point is that my code only creates a .sqlite database but it turns out that 2 more files are automatically generated. Sqlite-wal and .sq...
asked by 10.11.2018 / 00:12
0
answers

Why does Sqlite3 let you store a String on a float?

Gentlemen, I'm working on Sqlite3 for android, and I've seen that it allows storing a STRING in a FLOAT value, how do I control that? I leave you the create: CREATE TABLE 'mercado' ( 'id' INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, 'i...
asked by 02.11.2018 / 17:50
0
answers

Error copying a SQLite database in android

Could someone guide me? I've been involved with this for a couple of days and it fails. I have a SQLite .db file that contains an empty database. the idea is to copy it to my android application from the assets directory, which is located in...
asked by 02.11.2018 / 22:32
1
answer

Update record in database

I have a question, I would like to update a record of five of a database in SQLite and that the resulting list shows the four unregistered records next to the new record. I'm getting involved and I do not know if it will be necessary t...
asked by 23.10.2018 / 19:50
1
answer

Show Time SQLite Android

I have this code, as you can see the name of a worker is registered, but I do not know how to show that time in textView , because if I do this, tvHora.setText(date); does not show me anything and the app closes . private String g...
asked by 22.10.2018 / 04:17
1
answer

Compare a SQLite field in Android Studio

I am trying to compare a field named NAME of type TEXT with a variable that I have in another activity, how could I get that field that contains the name of a user and be able to compare it?     
asked by 25.10.2018 / 01:42
1
answer

Record time in android studio

I'm doing a Qr scanner application, I already have the scanner encoded, what I want to do is scan a code, register the current time automatically in which the scanner was made, use sq lite to record data, If someone could help me, I would apprec...
asked by 05.10.2018 / 08:43
0
answers

Import data from excel file to SQLite

I need to import the data from a .csv file selected by the user to my database This is my code: private static final int COD_SELECCIONA_TXTCLI = 12; private static final int COD_SELECCIONA_XLSCLI = 13; private String myPath; public void el...
asked by 26.09.2018 / 19:11
0
answers

How to fill in expandableListView from room database

I am trying to fill a multi-level expandable ListView (three levels, for now), I can fill the first level (header), but only show the first item of the second level and none of the third level the queries I make to the database are: @...
asked by 25.06.2018 / 19:22