What Lifecycle Method of a Fragment do I Execute an AsyncTask?
-
27-10-2019 - |
해결책
I would use onCreate() as you only want it the first time and not after resuming. Look at the the Android documentation on Fragments though to make sure you understand fully. It has a nice fragment lifecycle image which I have put below for reference.
제휴하지 않습니다 StackOverflow