7 Different methods of passing information between activities in Android

Опубликовано: 24 Март 2025
на канале: The Interactive Studio
1,585
12

Step by Step Demo with explanation

0:00​​ - Passing Simple data types such as String, int, double etc using INTEN 

19:12​​ - Passing Complex data types as a Parcelable Object using INTEN 

26:51​​ - Using SharePreference 

39:12​​ - Using Class Static variable 

44:20​​ - Using 3rd party class like GSON to convert complex datatypes into strin 

46:50​​ - Using built-in database like SQLite 

48:17​​ - Using online Database such as Firebase, AWS 

1) Passing Simple data types such as String, int, double etc using INTENT
2) Passing Complex data types as a Parcelable Object using INTENT
3) Using SharePreferences

4) Using Class Static variable

Discussion

5) Using 3rd party class like GSON to convert complex datatypes into string
(https://github.com/google/gson)

6) Using built-in database like SQLite
(https://developer.android.com/trainin...)

7) Using online Database such as Firebase, AWS
(https://firebase.google.com/docs/data...)