Nguyễn Việt Thắng
New member
How can we get bundle from fragment in activity?
Answer
How to pass data from Activity to Fragment
Answer
How to pass data from Activity to Fragment
- Bundle bundle = new Bundle();
- bundle. putString(“params”, “My String data”);
- MyFragment myObj = new MyFragment();
- myObj. setArguments(bundle);