Questions tagged as 'android-sqlite'

3
answers

Java, I have a problem creating a new instance of a class

Good first I have this class User package com.example.leaftime.rocketdefender; /** * Created by Leaftime on 04/11/2017. */ public class User { private Integer id; private String name; private Integer score; public User(Int...
asked by 06.11.2017 / 07:41
2
answers

Problem with update to SQLite database from Android

Good morning. I have a problem updating data in a SQLITE database. I put the necessary code: Variables: public static final String TABLE_INVENTARIO_NAME = "inventario"; public static final String INV_NOMBRE="inv_nombre"; public static final...
asked by 01.09.2017 / 17:48
1
answer

Query InnerJoin Xamarin Android with Sqlite net pcl

I have a query in sqlite where I do several inner join var query1 = db.Query<Color>("select ar.Estilo, co.Nombre as Color, ac.Nombre as Acabado, ma.Nombre as Marca,te.Nombre as Otoño, su.Nombre as SubLinea from Articulo as ar inner...
asked by 16.08.2017 / 00:24
2
answers

The app stops when trying to enter data into a database [closed]

I'm new to programming in android studio, I try to make an application that manages a database of SQLite however at the time of trying to record data the app stops. These are my codes: NOTE: I am working with fragments. XML fragment: <...
asked by 27.05.2017 / 02:49
1
answer

Error with SQLite in a second table

Good, my mistake is that my app to develop with a single table is working perfectly but trying to add a second, when you use it is closed ... SQLite (class where I have the creation of my database ...) package company.viral.organizadorjec...
asked by 08.12.2016 / 10:53
1
answer

Erorr when inserting a data. sqlite.SQLiteConstraintException: UNIQUE constraint failed: tags.name

I have the following table which contains tag names (tags) and an identifier for each: public static final String TABLE_CREATE_TAGS = "CREATE TABLE " + TABLE_TAGS + " (" + COLUMN_TAG_ID + " INTEGER PRIMARY KEY AUTOINCRE...
asked by 02.02.2017 / 13:33
1
answer

Error Parsing Date Sqlite

I'm trying to pause a date in SQLite but it gives me the following error:    W / System.err: java.text.ParseException: Unparseable date: "Sat Feb 27 00:00:00 EST 2016" (at offset 0)   07-15 13: 32: 55.178 10245-10245 / mx.com.oncontrol.oncont...
asked by 16.07.2016 / 00:24
0
answers

Delete and Rebuild BD

I have a database on android, in which by means of a button or something I need the user to delete all the data, all the tables ... Absolutely everything and automatically the tables are generated again could do it? This is my SQLiteOpenHelper c...
asked by 15.12.2018 / 17:30
0
answers

Pass SQLite marks to Google Maps

I have a SQLite database where the marks are stored but I am not able to load them on the map. Thank you very much for your time. Main activity public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { Button btn;...
asked by 03.12.2018 / 19:30
0
answers

How to restore some files from the SD to the Databases?

I've been stuck with this for some time and I do not see any solution. I have managed to make a copy of the database of the Databases folder that is inside my project making a backup in the SD, but the problem is that I can not restore these fil...
asked by 16.11.2018 / 22:32