java - Too much RAM Usage in Android Application -
in application calling activity, in new handler started. later activty gets restarted again long using application. possible handler causing explosive ram usage 450 mb because never closed?
final handler handler = new handler(); final int[] = {0}; handler.post(new runnable() { @override public void run() { log.i("pointscopy", pointscopy.tostring()); appear(pointscopy.get(i[0])); i[0]++; if (i[0] < pointscopy.size()) { handler.postdelayed(this, 1500); } } });
thanks answering