Shaun Shaun - 1 year ago 505
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 Source

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.