You can enter AsynTasks, as well as actions along with this fragment -
MemoryInfo mi = new MemoryInfo(); ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); activityManager.getMemoryInfo(mi); long availMem = mi.availMem ;
to get information about the displayed memory, to get an idea of ββwhere the problem starts to appear.
Also, consider putting a breakpoint in onLowMemory and make sure that it is VM dependent, not thread specific, and checking threads to see which ones are causing the problem.
source share