Are all activities/framgents' lifecycle methods called in the main thread by default? I'm implementing a class which checkes if the app is currently in foreground/background. I'm using activities' onPasue/onResume to do that. I would like to make sure that I don't have to synchronize methods of my class.
答案 0 :(得分:2)
Yes, they are. In general, if something is called off the main thread the documentation will state so.