Answer the question
In order to leave comments, you need to log in
How adequate is the replacement of "intent.putExtra" with sharedPreferences?
A requirement in one of the applications being developed is the use of MVP, where
Answer the question
In order to leave comments, you need to log in
No, it will not. I didn’t understand what your problem is, but it’s better to transfer data to the fragment through the Bundle using the set / getArguments () methods of the fragment. In the place where you create the fragment, you set arguments for it, in the life cycle methods (like onCreate) - take them. You can also use the FragmentArgs library, it simplifies this process.
Links:
https://developer.android.com/reference/android/ap...
https://github.com/sockeqwe/fragmentargs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question