Questions tagged as 'sqlite'

1
answer

Save an ArrayList to an SQLITE table

If yes, how? This is my table: db.execSQL("create table amc (_id integer primary key autoincrement,tipo text not null, resultado float not null,data date not null, id_usuario integer not null, FOREIGN KEY (id_usuario) REFERENCES usua...
asked by 06.07.2017 / 20:13
3
answers

Listview of images and quantity - Android [closed]

Next, I have 2 questions that relate, so I'll do it in 1 topic. Well, I use this query to return a list of strings with the names of the products. public List<String> getMedico() { List<String> list = new ArrayList<>()...
asked by 26.01.2017 / 15:17
1
answer

Query returns nothing [closed]

I am making an android application with sqlite feature but I am not able to return anything with these where statments . I have the following table:    id day month value1 value2 and the following cursor: resultado = db.rawQuery(...
asked by 23.08.2016 / 08:20
1
answer

Doubt - Google Drive + Sqlite [closed]

Good evening, It would be possible to use the Google Drive service how to SQLite HOST? Thank you!     
asked by 02.09.2016 / 23:16
1
answer

Update Android Database

I am creating a database on Android that has a column called status where it is saving (0 or 1) 0 for when it is without internet and 1 for when it has internet, I want to do the update of the bank for the following to occur, when to return th...
asked by 03.03.2015 / 05:43
1
answer

How to edit items in sqlite.net with xamarin [closed]

I'm learning to use sqlite.net in Xamarin , but at the time of editing an item is not working, I debugged the code and gave breakpoint to EditItens() and saw values passed to conexao.Query<Itens> are corre...
asked by 14.10.2017 / 00:41
1
answer

I can not do the inclusion of the bank

I'm studying android and I'm doing the CRUD from the bank ... only I did the code and put it to run it does not work. It has the layout with a field to write what you want to save and on the side a button, just below has the listview for me to s...
asked by 19.06.2017 / 17:32
1
answer

Error SQLiteDatabase db = this.getWritableDatabase (); [closed]

public ArrayList<String> addMigracaoCadIndividual(String QUERY){ SQLiteDatabase db = this.getWritableDatabase(); return null; }    java.lang.NullPointerException           at android.content.ContextWrapper.openOrCreateDatabase (C...
asked by 09.04.2018 / 20:48
1
answer

how popular is the object array with SQLite data

Well come on, I'm making an application, this will have several student names. I made a method that would add each name to a DB table. no bd is like this (Antonio, Pedro, Caio, Felipe ......). I need this data from the DB to be recovered and...
asked by 30.01.2017 / 00:58
1
answer

SQLite giving "near" CREATE error: syntax error (code 1): "[closed]

Does anyone know what's wrong to be giving this error? I/System.out: ERRO 1 :android.database.sqlite.SQLiteException: near "CREATE": syntax error (code 1): , while compiling: CREATE TABLE tbcliente ( IdCliente int(11) NOT NULL, IdEmpresa int...
asked by 27.12.2018 / 19:34