문제

I notice that there are two Android methods with the same names and parameters:

All of the documentation I can find (such as Handling Runtime Changes) seems to refer to the method in the Activity class. What is the relation between the two methods? For example, if an Activity is specified in the manifest as handling configuration changes, is the Activity's onConfigurationChange method called, then the Application one, or vice versa?

도움이 되었습니까?

해결책

Since the documentation doesn't indicate the order of the calls, you shouldn't rely on the order of the calls.

You could look at the source code for Android to determine this, but since it isn't documented it could change in the future, therefore you shouldn't rely on this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top