No video

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

  Рет қаралды 25,937

Foxandroid

Foxandroid

Күн бұрын

How to Share Data between Fragment and Activity || Share Data using ViewModel || FoxAndroid || 2021
Source Code: DM on Instagram
Follow me on Instagram: / foxandroidblog
Follow me on Facebook: / foxandroidblog
---------------------------------------------------------------------------------------------------------------------------------------------------------
Equipment I Use to Make My videos:
📱 Phone -: amzn.to/3px6ucS
🎧Earphones -: amzn.to/3JecI98
🎙️Mic - : amzn.to/310u7Rp
🎙️Mic - : amzn.to/3He96SW
🔊Speakers - : amzn.to/3Hgfzg8
💾External HardDrive - amzn.to/3JoRzZV
💻 My PC build: www.amazon.in/...
--------------------------------------------------------------------------------------------------------------------------------------------------------
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
• AlarmManager in Androi...
How to Sort Recyclerview items using Java
• How to Sort Recyclervi...
Sort Recyclerview using Kotlin
• Sort Recyclerview usin...
AlarmManager using Kotlin in Android Studio
• AlarmManager using Kot...
Send Data from one Fragment to Another Fragment
• Send Data from one Fra...
Fragments Implementation using Kotlin
• Fragments Implementati...
#sharedata #fragments #androidstudio

Пікірлер: 16
@user-iq3oc8bh5s
@user-iq3oc8bh5s 2 жыл бұрын
finally found the answer to my questions. The video is just super. Thanks a lot))))
@iftak01
@iftak01 3 жыл бұрын
Great vid! Please do vid using Kotlin..thanks!
@bjugdbjk
@bjugdbjk 2 жыл бұрын
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 !!
@sem_dev
@sem_dev 2 жыл бұрын
Halped A lot Man keep it up !!
@codeexplorer4212
@codeexplorer4212 3 жыл бұрын
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.
@_foxandroid
@_foxandroid 3 жыл бұрын
Same method can be used...video will be out soon
@dineshramalingam959
@dineshramalingam959 3 жыл бұрын
@@_foxandroidi am trying to implement tablayout in an activity by creating three fragments .. is it possible to share the same data(like a firebase uid) from an activity to all three fragments?
@yugalkishore3154
@yugalkishore3154 2 жыл бұрын
@@_foxandroid it's been 8 months now. Where is the video to transfer data from Activity to Fragment??
@mohamedzakariagridi1059
@mohamedzakariagridi1059 3 жыл бұрын
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?
@lyawileh.a8741
@lyawileh.a8741 2 жыл бұрын
set and get all fields you want inside the viewmodel and set and get them in any place in your program.
@user-rf2yi4mj2y
@user-rf2yi4mj2y 6 ай бұрын
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); ((mainActivty)getActivity()).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
@FarooqAhmad-lr1fx
@FarooqAhmad-lr1fx 2 жыл бұрын
how to send data from activity into fragment?
@amolthombre8259
@amolthombre8259 2 жыл бұрын
I have same question. Please help
@ekchhuon4976
@ekchhuon4976 3 жыл бұрын
Why not kotlin
@tunguyen-nm8qn
@tunguyen-nm8qn Жыл бұрын
how to code not clear
Fragments Simplified : Sending Data from Fragment to Activity
5:18
Mohamed Shehab
Рет қаралды 1,7 М.
The FASTEST way to PASS SNACKS! #shorts #mingweirocks
00:36
mingweirocks
Рет қаралды 12 МЛН
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 38 МЛН
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 32 МЛН
Android: Share Data Between Fragments Using ViewModel
23:19
maximCode
Рет қаралды 11 М.
Preferences DataStore in 10min (SharedPreferences deprecated)
11:14
Philipp Lackner
Рет қаралды 74 М.
Fragment to Fragment Communication in Android Studio [Kotlin 2020]
11:39
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 60 М.
ViewModel Explained - Android Architecture Component | Tutorial
8:27
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 356 М.
The Basics of Data Binding in WPF
20:53
Tactic Devs
Рет қаралды 41 М.
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 329 М.