L
L
LikeKey2020-01-03 12:43:30
Android
LikeKey, 2020-01-03 12:43:30

Restoring state of fragment variables in android?

What is the difference between restoring the state of variable fragments through the onCreate() method and onCreateView() if both of them are passed a Bundle as parameters?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-01-05
@zagayevskiy

The same bundle also comes in onActivityCreated. Most likely, this was done for the convenience of the programmer, so decide for yourself where you want to recover.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question