Search code examples
androidfirebase-realtime-databaseandroid-asynctask

Should I use AsyncTask to retrieve user information?


I have an app where there is a login page, and after logging in there is an activity where it shows the Username, a profile picture, and some other strings related to the user, that I get from a firebase database. Should the process of downloading that information be done using AsyncTask?


Solution

  • No. If you use firebase SDK they delegate job to background thread, so AsyncTask is not necessary.