Hi everyone
Probably you know that recently my two extensions (FileTools and DateTools) has some bugs in methods that work asynchronously.
So I started my research and found that AsynchUtil class from AI2 is not working and un-necessarily closing application.Then I searched on Google for ‘best’ alternatives and found two most used and working solutions for JDK 6:
- Thread
- AsyncTask
First I started replacing AsychUtil with Thread and did few tests and amazingly it was behaving same.
Finally I chose AsyncTask and it worked like charm and it also reduced aix size 1 kb (compiled using extension template).
Now you will be thinking that why I wrote this post.
Answer is no.
If you are a beginner in extension development and using AychUtil or Thread in your extensions then I will advice you to do some tests on various devices.
And if you find your test results unfavorable then you must have to switch to AsyncTask.Otherwise there is not any solution available in my perspective.
Thank you for reading this