在激活中,我编写的代码可以正常工作。Android应用程序中ArrayList的OutOfMemoryError
但现在我已经添加了一个方法,以用下面的代码此活动:
private void obtenerDatosReuniones(){
try {
int j=0;
String aux = jsonReuniones.getString("nombres");
String aux2 = null;
aux2 = aux.replace("[", "");
aux2= aux2.replace("]", "");
String [] campos = aux2.split(",");
while(j<campos.length){
nombres_reuniones.add(campos[j]);
}
nombres_reunones的类型是ArrayList的
当运行该应用程序显示出在线路nombres_reuniones下面的错误。添加(campos [j]):
我在做什么错?
谢谢!