Questions tagged [android-database]

General programmatic usage of databases on Android

Databases and tools related with persistence supported by the Android operating system.

584 questions
0
votes
1 answer

AndroidAnnotations @EProvider annotation

In my Android application I'm using ContentProvider and SQLiteOpenHelper to access DB. Now I learning AndroidAnnotations framework and found @EProvider annotaion in documentation, but I can't neither understand how to use it from example on GitHub…
0
votes
3 answers

how can show sqlite entity on a list in android studio

I'm new in android. I just write an app that give a string from EditText and save it in SQLite. know I want see the contents of Database in a ListView. But I don't Know how could you please help me to write a method for this work. That's my…
SARA
  • 11
  • 1
  • 6
0
votes
2 answers

How does an Android app automatically fill its database with values after the user installs it?

This is a follow-up question to this question. I was reading this tutorial from Android.com, and I made this code while following the tutorial: import android.content.Context; import android.database.sqlite.SQLiteDatabase; import…
Rock Lee
  • 9,146
  • 10
  • 55
  • 88
0
votes
1 answer

How to put the result of database class into another activity

I am a beginner in android application development. I am now handling a project of reminder application. I am attaching my db Helper class here. My question is, how can i pass the data in database when inserted or updated in another activity named…
0
votes
1 answer

Subclass of SQLiteDatabaseHelper throws NullpointerException when calls getReadebleDatabase()

I have a subclass of SQLiteDatabaseOpenHelper called DatabaseSuper which overrides onCreate and onUpdate methods. DatabaseController class is the subclass of DatabaseSuper which intended to implement all the application specific database…
user2486322
  • 847
  • 3
  • 13
  • 31
0
votes
1 answer

Android Guaranteed Reference to a Contact

I have an app that needs to maintain persistent references to certain contacts on a device. I used to do this by storing ContactsContract.Contact._ID, but I've recently had issues where the _ID would change and I was no longer able to reference the…
Eliezer
  • 7,209
  • 12
  • 56
  • 103
0
votes
2 answers

Unable to display sqllite data into Table Layout

I am new to Android. I'm trying to display the data in a tabular form, loading data from thedatabase`. But it is showing the following error: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the…
mohan babu
  • 1,388
  • 2
  • 17
  • 35
0
votes
2 answers

creating listview using a local database has Error copying database android

Hi I'm trying to create a ListView that displays the data from a sql file and I always got an error "Error copying database" or i can't open the database here is my DBHelper public class DBHelper extends SQLiteOpenHelper { //The Android's default…
Kairi San
  • 239
  • 1
  • 9
  • 23
0
votes
2 answers

Insert data from parse into sqllite database

I am trying to get notification content and store it into the database automatically, as soon as the notification is released from parse.com the data should be saved in the database whether the user clicks to view the notification or not. This is…
George
  • 1,086
  • 14
  • 48
0
votes
1 answer

How to check if a column is not null in Android SQLite database table

I'm working on a project, in which I'm creating a SQLite database table and it has certain number of columns. I want to include a condition that if a particular column is not null, then perform certain action (in order to fill that value up). I…
user3150214
0
votes
1 answer

Encrypt Spatialite Database using SQL Cipher

I'm currently using a spatialite lib given here: What I want is to encrypt the spatialite database, but the problem I don't know where to start. I'm thinking of using SQLCipher, but If I'am not wrong the sqlcipher replaces all the SQLiteDatabase…
Adolf Dsilva
  • 13,092
  • 8
  • 34
  • 45
0
votes
1 answer

Error when pressing an item in a listview

I am developing a listview complete with a database. When tapping an item of listview, the application closes and displays this error: 05-25 18:47:59.506 13297-13297/? I/art﹕ Not late-enabling -Xcheck:jni (already on) 05-25 18:47:59.664 …
0
votes
1 answer

Protect applications database

I made ​​an application that has a large database. Spent a lot of time to build the content of the database . When the software is run for the first time . The database Inside the device ( external memory ) is copied . My question is : What should I…
mariya
  • 53
  • 11
0
votes
1 answer

Failed to retrieve data from a database, to complete a listview

I'm using databases to complete a listview. But I've run into a problem that is not solved. The problem arises when I create a variable lugar of the class Lugar. Here is the class code Lugar: public class Lugar { private String nombre; …
0
votes
1 answer

How I can eliminate my duplicate from list

I have a problem with the duplicate items in my list. I want to view my items from my database. If you want, in top of the list, there is the last item from database and if you scroll down you will see the historic (the rest element of database) but…
cavaler12345
  • 367
  • 1
  • 5
  • 15