There is 1 Button on my MainActivity and when user clicks on it, it starts the UserProfileActivity to view the current signed in user profile details along with names (values) on TextView.
e.g. it's something like this >>
"Name: Bean Smith",
" Age: 27 ", 
" Gender: Male ".
 I've already created the layout for the same and I know how to retrieve data's from the DatabaseReference to display values on TextView acting as the user details (from DataSnapShot). 
Issue:
I want to load the user details before my MainActivity will start, so that when the user clicks on the button to check the user profile, the values should get auto populate automatically. 
I've searched and found AsyncTask but I Don't really know how or when to use this. please any help from you guys will be highly appreciated.. 
thanks.
 
     
     
     
     
    