federicoiosue / Omni-Notes

Open source note-taking application for Android
https://omninotes.app
GNU General Public License v3.0
2.68k stars 1.11k forks source link

AsyncTask is deprecated #843

Closed phucbao2k closed 2 years ago

phucbao2k commented 2 years ago

i came across this app, overall i think the app has a pretty good structure, however there are many constructors that are deprecated on android 11 or later. Typically AsyncTask has been replaced by ExecutorService. So does anyone have an alternative to AsyncTask? What statements or classes do we need to add or replace? Thank you so much for reading this post

federicoiosue commented 2 years ago

Hi there,

maybe Coroutines are the best deal to replace older async processing methods. Native threads are another alternative. Keep in mind, anyway, that deprecating doesn't actually mean that they'll not work, at least in a short time.