How to Share Data between Fragment and Activity || Share Data using ViewModel || FoxAndroid || 2021

preview_player
Показать описание
How to Share Data between Fragment and Activity || Share Data using ViewModel || FoxAndroid || 2021

Source Code: DM on Instagram

---------------------------------------------------------------------------------------------------------------------------------------------------------

Equipment I Use to Make My videos:

--------------------------------------------------------------------------------------------------------------------------------------------------------

Hey Developers,
In this video, I have explained :

* How to share the data between Activity and a Fragment using shared ViewModel

AlarmManager in Android Studio

How to Sort Recyclerview items using Java

Sort Recyclerview using Kotlin

AlarmManager using Kotlin in Android Studio

Send Data from one Fragment to Another Fragment

Fragments Implementation using Kotlin

#sharedata #fragments #androidstudio
Рекомендации по теме
Комментарии
Автор

finally found the answer to my questions. The video is just super. Thanks a lot))))

ЖаксылыкЖуасбай
Автор

Great vid! Please do vid using Kotlin..thanks!

iftak
Автор

Nice explanation, but what if I have multiple data to pass at same time? for example I have fragments that have Strings and Booleans and i want to get them to print them in pdf document.
How do you get know which data is when there is more than one?

mohamedzakariagridi
Автор

But I need without button just like this if i in current visible fragment then update activity var with my fragment var
Like fragment
EditeText ed = view. findViewById(R.id.ed);

= ed;


How can do like this i try but it's just pass last fragment address not current fragment
If I use button then work but I need without button

Noob-iw
Автор

Nice video. Can you please suggest how to transfer data from Activity to Fragment too, where data will be send by the activity and fragments listen.

codeexplorer
Автор

Great Series, Thanks for sharing !! Have a question, we can do something what is mentioned in the playlist using Navigation Compoenent right ? Do u see any advantage of still using fragment manager !!

bjugdbjk
Автор

how to send data from activity into fragment?

FarooqAhmad-lrfx
visit shbcf.ru