Slow And Unresponsive Activity In Android
I have a simple activity that needs to be active for 10-15 minutes. The activity is using TelephonyManager to get three LTE parameters: RSRP, RSRQ, PCI. It collects these three par
Solution 1:
Since it's something that builds over time it propably means that Views or objects are not being garbage collected properly by the OS because their references are not being released...which leads to memory problems. I suggest as a first step to use a memory profiler and check how much of your memory is being used over the duration of your test. Other than that you could check the time that your methods need to be executed by doing something like this
void methodName(){
long startTime = System.currentTimeMillis();
.
.
.
.
Log.w("time needed for this method",Long.toString(System.currentTimeMillis()-startTime);
}
Post a Comment for "Slow And Unresponsive Activity In Android"