Skip to main content

All Questions

Tagged with
0 votes
0 answers
31 views

Sqllite data fetching took more then a minute for 5000 records

//Table Create private String CREATE_COST_CENTER_TABLE = "CREATE TABLE IF NOT EXISTS " + SQLConstants.TABLE_COST_CENTER + "( " + SQLConstants....
Gaurav Sharma's user avatar
1 vote
0 answers
51 views

How to get current sqlite id for a selected cardview from an arraylist

I'm trying to use a delete button to remove a specific contact cardview along with it's respective sqlite database entry. I managed to do so by using deleteOne method from the DatabaseHelper. It works ...
udbhav shrivastava's user avatar
-2 votes
1 answer
52 views

IndexOutOfBoundException when i pass arraylist to DBHelper to update database (Android SQlite)

I am new at android and trying to make managing members app with database. what i want to do here is that when user buys any drink it should change drinks name to "bought" in database, but ...
Shashank Mistry's user avatar
-1 votes
1 answer
55 views

How do I create an ArrayList that gets a list of rows in room and java (as an Async task probably)?

Pretty much the title really, currently what I tried is this: ArrayList<User> users = new ArrayList<User>(userDatabase.getUserDao().getSavedUsersLists()); but it only works if I allow ...
Andry's user avatar
  • 57
1 vote
1 answer
257 views

How to loop through a cursor in SQLite once, close and move to next without displaying the first row again

I'm trying to loop through an arrayList but the problem is everytime it loops, first loop it is showing only one element, second loop it is showing the previous one and a new one and the cycle ...
krish's user avatar
  • 257
-1 votes
1 answer
1k views

How to set a latitude and a longitude arraylist in a single latlng arraylist and then display list of latlng coordinates

I have been working on getting markers drawn from an sqlite database. So far i have gotten so far that the application displays the last marker from the database using a for loop but I am not sure how ...
Edward Aarma's user avatar
-2 votes
1 answer
64 views

How to RESET Arraylist at the end of the week?

I have an arraylist: ArrayList<String> wholeWeekArrayList = new ArrayList<>(); DatabaseHelper(SQLite) is storing the values into the(above) arrayList: Cursor data = mDatabaseHelper....
MR.B's user avatar
  • 16
0 votes
1 answer
44 views

problem selecting from listview of custom listview from sqlite database

im having troubles selecting from my custom listview and getting the itemName from the sqlite database. i place some other code below, not sure if they are necessary. The Log.d(TAG, "The name is" + ...
Dhwng7's user avatar
  • 57
1 vote
2 answers
165 views

How to search data in recylerview in android

All my code is running successful but I Want to add Searchview. I tried many method. When edittext text change app crashed. I also applied try cathed method but i am not seeing any error Just app ...
Waseem Virk's user avatar
1 vote
1 answer
1k views

Android - sqlite in clause using string values from arraylist?

public void DBSearchCategory(String tableName) { // 1st way String inClause = s1.ListViewCategory.toString(); inClause = inClause.replace("[", "("); inClause = inClause.replace("]", ")...
Korea19800's user avatar
0 votes
1 answer
36 views

How to access sqlite data to ListView in fragment

i'v android app where should save file.xlsx into sqlite DB, this DB should be empty on start then i choose the file.xlsx from directory to save it into sqlite and this is the code: HomeFragment ...
Junior Dev.'s user avatar
-2 votes
1 answer
201 views

How to fix IndexOutOfBoundsException in Java Android App [duplicate]

Hi I'm trying to create an interactive Android quiz application in Java, and when I try to enter the quiz section I get an index out of bounds exception, does anyone know how to solve this? I have ...
edpor's user avatar
  • 43
0 votes
1 answer
48 views

arrayList appears to only be created if one activity is done first, not the other

I'm having an issue with this app I'm writing for a class in school. It's a basic workout tracking app. I have an arrayList but the Cardio.java activity can only save to the arrayList if Strength....
Jordan Hawkes's user avatar
1 vote
1 answer
3k views

Populate Room Database with Arraylist

I would like to build a Deckbuilder that allows you to save created decks locally on the device. The Decklist are stored in Arraylists, called TransferDeck. Which I would like to store in room ...
mrmeaaan's user avatar
  • 758
1 vote
2 answers
51 views

ArrayList outOfBoundsException database error

Hey as I was running tests on my application I began to delete database values from my database. Once I did I began getting this error Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 ...
JOhn's user avatar
  • 101

15 30 50 per page
1
2 3 4 5
15