Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top