Passing the data between activities to fragment is same as the the passing from fragment to fragment.
In this we pass the data from one activity to other fragment using the bundle which is use to transfer the data from one page to another weather it is activity or fragment and it can store the the data with different data types.
Please refer the below link to pass the data from activity to fragment.
pass data between fragments
In this we pass the data from one activity to other fragment using the bundle which is use to transfer the data from one page to another weather it is activity or fragment and it can store the the data with different data types.
Please refer the below link to pass the data from activity to fragment.
pass data between fragments
No comments:
Post a Comment