Android loading contacts is too slow

后端 未结 2 1553
遥遥无期
遥遥无期 2021-01-14 05:40

in my app there are 5 spinners populated with the contacts in the phone. I am using the code below to populate an array with the contacts and then populate the spinners with

2条回答
  •  -上瘾入骨i
    2021-01-14 06:06

    Your Spinners would populate a lot faster if you used a break to jump out of your for-loop once you assign

    num = i
    

提交回复
热议问题