Questions tagged as 'sqlite'

0
answers

Display data saved in Sqlite

How to show in a Text view the data stored in the Sqlite database by pressing the button, because with the current code when I press the button I get EnsayoNull. This is the code: package com.example.mand.crudsqliteandroid;...
asked by 18.07.2018 / 00:39
1
answer

How to consult a date that is after a given date sqlite?

What I want to do is that if for example in a sqlite table I have the following data DD / MM / YYY format | FECHA | -------------- | 06/12/2017 | | 24/7/2015 | | 2/10/2014 | | 13/1/2017 | | 06/11/2017 | and when mak...
asked by 02.07.2018 / 06:01
0
answers

error when calling the bd in the main activity

I have the following codig'package com.example.manuu.alazar; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import android....
asked by 20.06.2018 / 22:40
1
answer

I need to display all the identical records from Android Studio with SQLite

I have a database in an app in which I have registered the Names (VARCHAR) and an RFC (VARCHAR) of users. I have to do a search by entering a parameter in the two tables (Name and RFC), if there are repeated records, the list has to display all...
asked by 19.06.2018 / 06:30
1
answer

Get array of a sqlite table

Oigan I wanted to ask you how to individually obtain the objects of a sqlite table, essentially I need to obtain the date of this appointment to compare it with the current date, but I have problems to fetch this data ... What really interests m...
asked by 21.06.2018 / 19:49
0
answers

How can I write these sentences written in Jquery (Mysql) to sqlite android?

$query=mysql_query("SELECT stock FROM tienda WHERE producto_id=$producto_id"); my_query("UPDATE tienda SET stock=stock$cantidad WHERE product_id=$producto_id"); Note: what I want my program to do is to be able to consult the database and then...
asked by 31.05.2018 / 02:18
1
answer

Do not insert SQlite data

What kind of colleagues do I try to insert from an Activity but it gives me these errors? What will it be? public class HelperSQLite extends SQLiteOpenHelper { public String TABLACLIENTE = "CREATE TABLE Cliente(RFC TEXT PRIMARY KEY, Nombre T...
asked by 22.05.2018 / 22:52
0
answers

Error closing select cursor with SQLite and changing fragments

I have a difficult problem to explain and that I can put code if you wish but I think it is better to comment as you can and give me opinion. I have an android application that works with several activities, but it contains a main one and in...
asked by 23.05.2018 / 17:19
0
answers

LogIn, Connect a Local DB to a mobile BD, synchronize data manually

I have a school project where I am asked to create a login by consulting a mobile BD, this database must be connected to a local database with a button that updates the information of the Mobile Database in the local database, I leave a diagram...
asked by 13.05.2018 / 07:19
0
answers

Relationship one to many java (android)

How can I create a one-to-many relationship in Android, how would it be the best way? I have this kind BDPlan , a plan has 1 to many Activities and I would like to know how to represent this relationship between tables public class BDPla...
asked by 10.05.2018 / 23:09