Questions tagged as 'sqlite'

1
answer

Update in sqlite does not update data

Hello, could anyone help me, the update is not updating the data! Follow the button that calls the method: @Override public void onClick(View v) { Receita rec = new Receita(); String dosradio = null; switch(rg....
asked by 29.09.2016 / 03:30
1
answer

How to insert images in Android Studio from a drawable folder?

People would like to know if it's possible to load an image from a drawable folder. For example, I have a ListView with several categories, when a category is selected I would like all the images related to this category to appear, so that the u...
asked by 27.09.2016 / 21:41
1
answer

ORMLite android

I'm having a problem writing a login to the database, when I call create it it returns me Null, what can I have done wrong? Remembering that when I give a LOG to see the login, it shows me the data that was informed, it just does not write to th...
asked by 28.10.2016 / 21:56
0
answers

Consult user in SQLite [closed]

I need to validate a user in the database. If it is valid, I want to call the second Activity. What method to use to do this validation in the android database? Insertion code: public String insereProfessor(Professor professor) { Con...
asked by 08.09.2016 / 20:12
1
answer

Error trying to write result to database

I would like to record the Contact Name and contact number in the bank. So I can use it in other activities. But when I return from the contact screen to the Activity in question, an error occurs, it seems to me that it does not find the Inte...
asked by 23.06.2016 / 17:00
0
answers

How to insert an id in SQLITE android?

I am trying to insert the same id that I get from the server database in the android database through sqlite, however, it is generating its own id, I am using auto increment in the primary key, I already tried to use unique and I already tried n...
asked by 19.05.2016 / 02:55
0
answers

Where is the file: I am developing with Ionic / AngularJS and SQLite

I'm trying to open the database in SQLiteBrowser, but I can not find the created file. I used the command: window.openDatabase The alias I gave is "my.db" but I can not find it anywhere. In what folder does the Ionic / AngularJS create...
asked by 14.04.2016 / 16:41
1
answer

Pre-written database (Phonegap / Cordova + sqlite)

I'm developing an App using Phonegap / Cordova and Sqlite, however along with the application it is necessary to go a database containing approximately 50MB of text information. I'm using the "Phonegap" app in android to test the application, bu...
asked by 17.03.2016 / 00:12
0
answers

Update Spinner items at run time

I have a spinner that returns the cities saved in my DB, when this city does not exist, I allow to register the same, and after registering and saving, I have to close the city cadastre activity and return to the previous one that would be the a...
asked by 20.11.2015 / 16:54
0
answers

Listing DB data using SELECT and ORDER BY

Doubt There is a screen with an EditText and a Button. When entering any information in EditText and selecting the Button the system must redirect the information of the EditText to an activity and this activity should select in the BD all...
asked by 09.01.2016 / 00:06