Skip to main content
1 vote
0 answers
33 views

I'm converting an android app to Jetpack Compose and would like to convert a RecyclerView that displays hundreds of thousands of rows into a LazyColumn. I used a RecyclerView.Adapter for the ...
migueljuan's user avatar
0 votes
3 answers
296 views

Trying to get this cursor: @Query("SELECT * FROM category") fun getCursor() : Cursor with this code: lifecycleScope.launch { binding.category.adapter = ...
user1785730's user avatar
  • 3,839
0 votes
1 answer
101 views

While exploring the capabilities of the Room library and the RoomDatabase class, I decided to test the query() method. Since the description in the official documentation does not contain any ...
Alexey Vovchenko's user avatar
0 votes
1 answer
112 views

In the following code, I want to change that blue leaf color to black (have attached the image) I know how to change the cursor color but how to change this leaf color? I am not even sure that's the ...
Ariana's user avatar
  • 31
0 votes
1 answer
151 views

I need to mock a Cursor for some content provider unit tests, but the addRow method is not working for some strange reason. After adding a row, the count always remains 0. What am I missing? @Test fun ...
user3826764's user avatar
0 votes
1 answer
315 views

The app analyzes emotion by taking all the photos in the phone's MediaStore and sending the photos containing the face(s) in the loop to our model. However, instead of looking at the whole MediaStore ...
Begüm Muşdal's user avatar
0 votes
1 answer
594 views

The app analyzes emotion by taking all the photos in the phone's MediaStore and sending the photos containing the face(s) in the loop to our model. However, instead of looking at the whole MediaStore ...
Barış Balcıkoca's user avatar
0 votes
1 answer
498 views

I have gone through and made sure all my Cursors are closed. I am running with strict mode with detectLeakedSqlLiteObjects and detectLeakedClosableObjects and that never gets triggered. But when ...
casolorz's user avatar
  • 9,814
0 votes
1 answer
50 views

I have coded some code that connects to a databse in the internal storage of the device, runs a SQL statement to filter out excercises, then iterate through the results and create a list that can be ...
Adil Ahmad's user avatar
0 votes
1 answer
111 views

I'm working o a calendar app with events and I save them in MyDatabaseHelpe, the events are shown in a listview by day, my problem is that in onitemclicked, I want the data of the event to be shown in ...
Chris Damianidis's user avatar
0 votes
1 answer
194 views

I am new to android using kotlin.I am getting this error message in my log. Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is ...
Ankit Vora's user avatar
0 votes
1 answer
616 views

I was trying to return multiple values from the table with such a query: ` @Query("SELECT *, AVG(engineCapacity) as avgCapacity FROM Car WHERE bodyType=:bodyType") fun getByBodyType(bodyType:...
Yasmin Ferguson's user avatar
1 vote
2 answers
59 views

How to get the only phone number from the device contact, not whats app and duo number, etc... Example: I got the device contact number, but that return Phone Number What's App Number Google Duo ...
Tippu Fisal Sheriff's user avatar
1 vote
1 answer
68 views

I am building a android app in which there is a screen in which there are two tabs in form of fragment fragments are basically used for language translation. The problem is when i input something ...
Shivam Sharma's user avatar
1 vote
1 answer
208 views

I'm getting the error following error when building the project in android studio error: Not sure how to convert a Cursor to this method's return type (com.madstone.tageditor.database....
madstone0-0's user avatar

15 30 50 per page
1
2 3 4 5
75