Shaun Shaun - 5 months ago 127
Android Question

android fragment onRestoreInstanceState

Am I missing something or do

Fragment
s not have a
onRestoreInstanceState()
method? If not, how do I go about attaining something similar?

mgv mgv
Answer

Fragments do not have an onRestoreInstanceState method.

You can achieve the same result in onActivityCreated, which receives a bundle with the saved instance state (or null).

Check the source code here.