I had asked a question recently.
String[] name = new String [10000]{};
while (c.moveToNext()){
.....
. .. . ..
.. .
name[i] = displayName;
i++;
}
Log.d("COUNTS_CONTACTS", Arrays.toString(name));
When I print out COUNT_CONTACTS
I get huge output
[B, Bs, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, .....]
It is actually happening for array size. So, I want to change the array size. how much user have contacts the array size will be same as that.. That's what I want. How to do that?
I was reading the question. This answered worked with ArrayList. And, He did as I did. I don't want list either.