Android Array Adapter with ArrayList and ListView not updating when the arraylist is changed

前端 未结 3 473
一个人的身影
一个人的身影 2021-02-04 10:52

I have an android app with a screen that comprises of a ListView, which I am using to display a list of devices. These devices are held in an array.

I am trying to use

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 11:24

    your method addDevice is causing an endless loop. Dont call a method from itself like you are doing here :

    deviceList = addDevice();
    

提交回复
热议问题