Questions tagged as 'android-sqlite'

2
answers

Error getting the dates in query SQLite

Hello it happens that I had problem to obtain the records of the date field of a sqlite table, now I have corrected my code to obtain dates like this: do { inicio=new Entidades.TablaInicio(inicio); inicio.setId(cursor.ge...
asked by 22.09.2018 / 20:09
2
answers

Can a Layout be used in 2 activities?

Good afternoon. I have an app that consumes webservices (that part is already finished), but now I require that this app works without internet access, I have created my bd and I already have saved data. My question is if I can use a Layou...
asked by 13.07.2016 / 00:51
1
answer

Error in Android SQLite query

I want to make a query of the id_empresa of the table TABLE_CLIENTE , where the client_name is equal to what is inserted in the textView called et_searchClient , making the query INSIDE the activity. I already tried several...
asked by 27.08.2018 / 19:21
3
answers

Deleted data in SQLite android

I had a problem with my bdd in android apparently everything is due to how I have structured the part of onUpgrade @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE I...
asked by 14.02.2017 / 08:35
1
answer

Android Timer or Service

Hello with all I have an application that works with a database, I want to execute a query in the base like the one that I leave later, the detail is that this method (query) should only be executed at 7:30 of the Tomorrow every day someone can...
asked by 22.10.2016 / 07:02
1
answer

Error inserting data from Sqlite to Arrayadapter

I have a detail that with my app that I have in android studio. The detail is that I get some data through webservices and store them in a local bd sqlite and I want to show them in a listview with a custom adapter, the problem is when the qu...
asked by 07.07.2016 / 23:02
1
answer

Does Android SQLite not support incremental auto ids that are not called "_id"?

I'm doing an implementation of a database in my Android application and I've noticed that all the tutorials I've seen, always call the id of tables _id or call an interface called BaseColumns that gives the name in string _id ....
asked by 05.06.2016 / 13:38
1
answer

Can I save the BD SQLite in android in another route instead of / Data / ...?

I would like to save the BD of my mobile application in another folder that was not the normal path of / data / .., for example in the sdcard in a route that I can specify.     
asked by 26.10.2016 / 02:43
1
answer

Custom adapter adds rows when scrolling

I have created my custom adapter class, which is responsible for loading the custom elements within my listview. public class Adaptador_calidades extends SimpleCursorAdapter { private Context mContext; private Context appContext; private int l...
asked by 18.02.2018 / 03:20
0
answers

insert with validation in SQLite

Hello I have a database in sqlite and it happens that I must add fields to a table that contains an id "integer primary key unique", the id can not be increased by other issues. The data that I add to the table I download from a webservice, now...
asked by 02.10.2018 / 05:11