Questions tagged as 'android-sqlite'

1
answer

Error with sqlite database on android

I have this code to manage an sqlite database on android: public class ConfiguracionSQLite extends SQLiteOpenHelper { public ConfiguracionSQLite(Context context) { super(context, "configuracion", null, 1); } @Override...
asked by 22.11.2017 / 11:07
1
answer

VOLEY, sending all the data from a SQLite table

I want to send all the data of the SQLite database in the following way: @Override protected Map<String, String> getParams() throws AuthFailureError { Map<String, String> parameters = new HashMap<String, Stri...
asked by 10.12.2016 / 05:02
1
answer

Back up content from a DB in /data/data/package/databases/db.dbname in sdcard?

My application creates a db, what I want to do is a backup of what it contains then I do the following code: File CarFile = new File("sdcard/xxxx"); if (!CarFile.exists()) { try { CarFile.mkdir(); } catch (Exc...
asked by 11.10.2016 / 02:17
1
answer

problems to interact with the database from a fragment

From so much research I realized that the fragment do not work the relation with the database SQLite as do the activity directly, that this could help me to work or what is the correct code line for to be able to work with t...
asked by 07.12.2016 / 06:54
2
answers

Error in sqlite

I am working on android studio with database sqlite and it generates the following error when deleting all the data in a table: When using this code: db.delete("tabla",null,null); I get the following error:    android.database....
asked by 14.09.2016 / 22:48
1
answer

How to generate folio with Sqlite android

Good I have a question, I have an app that works with data stored in sqlite is a collection app, I already have all the operation of my app, only that I lack the power to generate folio that when the user applies a payment generates a inte...
asked by 22.07.2016 / 21:47
1
answer

Error IndexOutOfBoundsException when selecting item in an AutoCompleteTextView

I have a AutoCompleteTextView that shows the matches from a query SQL . Matches are in a List<Predio> where Predio is an object with the data of a terrain. The AutoCompleteTextView only works well when I select t...
asked by 12.02.2016 / 03:17
1
answer

Insert flag in listview Android

I have a listview which is filled with Arrayadapater custom with data I get from my SQLite bd. The detail is that I need to insert a flag or an identifier in every detail of listview that shows me for example the listview...
asked by 19.07.2016 / 19:09
0
answers

What is the best way to encrypt a database (SQLite - Android)? [closed]

I imagine two possible ways of encrypting a database, encrypting the data by means of a class in charge of encrypting and decrypting or some mechanism that performs it automatically but I'm not sure what to use.     
asked by 20.10.2016 / 23:19
1
answer

UnsupportedOperationException when adding object in a list

I am using a Adapter that extends from RecyclerView.Adapter to show information obtained from a query SQL . When I perform the query at BD I get a List<Inventario> . When entering a Inventario when...
asked by 18.02.2016 / 20:25