Android App Perfomance Issues On Jellybean
I am working on a project where we are creating an Android app that requests data from a server to be displayed on the user's device (not sure how much more background information
Solution 1:
Starting with Ice Cream Sandwich, the default behavior of AsyncTask
has changed from a parallelized executor to a serialized one.
As you are executing several network requests in a batch of AsyncTask
(as seen in comment), that means your application waits for the previous request response before lauching the next one.
You can change the executor of an AsyncTask
using this code:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
myTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
else {
myTask.execute();
}
Source: AsyncTask Threading Regression Confirmed from CommonsWare blog.
Solution 2:
I has experienced the same thing on Kindle Fire, Sony Xperia Z and Samsung S4 (all with android 4.2).
The fix is: at App Manifest file remove "android:supportsRtl="true"".
Hope it will save your time. I spend 4 hours on tests and merging before i got it.
Post a Comment for "Android App Perfomance Issues On Jellybean"