Attempt to invoke virtual method 'void androidx.cardview.widget.CardView.setBackgroundColor(int)' on a null object reference

One time work as well, why not now?

Thank You

1 Like

I resolve in another way.
Thank You TIMAI2

You could share your resolution for others to benefit from....

To download data from Google Sheet, row by row, initially, I used as the ListView as the "Counter" of the rows to download.
I was just starting out!
Now I have simply used two Variables, one where I set as starting 1, (which then becomes 2, 3, and so on) while the other the length of the list (ex 153).
Besides, it works much better, since first I had to add a "bogus" line to download all the data.

blocks (1)