Questions tagged as 'sqlite'

2
answers

The database does not run

I am running a database already created in another class, but I do not know why it is not running: In this code: DB baseHelper = new DB(this, "DEMODB", null, 1); SQLiteDatabase db = baseHelper.getWritableDatabase(); if(db != null){...
asked by 08.03.2017 / 05:17
1
answer

Can I change the time and date of the mobile device using a DatePickerDialog and a TimePickerDialog? [closed]

I have implemented a DatePickerDialog and a TimePickerDialog to select the date and time that you want but I would like to know if that date I place can be changed in the mobile device.     
asked by 26.10.2016 / 23:17
2
answers

Can not read property 'openDatabase' of undefined on android

Trying to manage a database on the device through the plugin that facilitates ngCordova , I have come across the following error, and I do not sincerely see the reason. The device has android 4.2.2 Error TypeError: Cannot read property 'op...
asked by 21.12.2016 / 04:20
2
answers

Error inserting column in sqlite

Good afternoon I am inserting data that I get from a webservices to my sqlite database only when I run my app it says that a column does not exist in a table I have already changed the name of the database, version but follows the error...
asked by 06.07.2016 / 22:39
1
answer

How to know if a record already exists before updating it using SQLite on Android?

using the SQLite on Android I have a program where I ask for the name, phone number and address, and I also have a "Update" button to update some data, my question is: How do I create a sentence where I press the "Update" button and it looks...
asked by 16.12.2018 / 05:58
1
answer

Problem, "My application has stopped" - "SQLiteException: no such table"

I have created an App to consult the address of a person by placing its name in an EditText, for the database I used the BD Browser program for SQlite, create a folder called assets and place the .db file there. The application opens in the emul...
asked by 13.12.2018 / 21:02
1
answer

How to save my data that I have stored in SQLITE to remote MYSQL (Volley)?

I'm trying to decipher and the truth is that I'm already very burned and I can not figure out how to store my SQLITE list (cart of articles and prices) in a remote MYSQL database (I'm working with volley); The theme is like this first I retri...
asked by 28.11.2018 / 16:40
0
answers

Android sqlite INNER JOIN that returns an array

I'm using sqlite for android and I want a function that returns an array with all the objects that meet a condition. Let me explain: I have two tables: Movies private static final String CREATE_PELICULAS_TABLE = "CREATE TABLE " + PE...
asked by 27.09.2018 / 17:23
2
answers

Enter and show dates SQLITE Android studio

I have 3 fields that are (code, name, career) those fields are saved by a button and saved in a database SQLite , so all right, but I need that too have the date on which those data were entered, how could I do that? The idea was to see...
asked by 26.09.2018 / 00:32
4
answers

How to consult where sqlite with two fields?

At the moment of entering my data in the Edittext either the code (example "1") or name (example "pepe") only lists me when I enter the code, but when I entered the name I do not and I want to be listed by name or code at the time of the query,...
asked by 15.09.2018 / 03:17