Using onSaveInstanceState to deal with Device Rotation Changes in Android Studio (Kotlin 2020)

  Рет қаралды 8,465

Indently

Indently

Күн бұрын

This is one of the easiest ways to do it, although I do not recommend it too much for building complex apps, because it just becomes another line of code that you have to continuously go back and maintain.
​​​​

Пікірлер: 9
@saved74
@saved74 7 ай бұрын
How do you do this in java?
@iftak01
@iftak01 3 жыл бұрын
nice video but one ques what was the point of "username" variable in the onSaveInstanceState function? Its never used
@gregorszczypek9813
@gregorszczypek9813 Жыл бұрын
absolutely, trying to understand this as well. Did you find it out by any chance? greets
@mohnouriemm7533
@mohnouriemm7533 3 жыл бұрын
Hi, what is the advantage of using this method over having a "companion object{}" and simply deal with our data from there?
@sabrinafeliz4822
@sabrinafeliz4822 3 жыл бұрын
How to save and restore tablelayout
@swethaaresetty3105
@swethaaresetty3105 3 жыл бұрын
Hello , I am creating an app which has two fragments , home and profile . Profile fragments shows the user data retrieved from database. When i open profile fragment for the first time , it is taking time to load the user data and when i switch to home fragment and again back to profile fragment , it is loading the user details again . Can anyone please tell me how to load the data first time then save it and restore it from next time using kotlin.
Context in Android - A Deep Dive
12:39
Konstantinos Reppas
Рет қаралды 6 М.
Android ViewBinding in 8 Minutes
8:59
Philipp Lackner
Рет қаралды 78 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Fragment to Fragment Communication in Android Studio [Kotlin 2020]
11:39
16 - Fragments - Orientation Changes
15:03
Johan Jurrius
Рет қаралды 8 М.
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 342 М.
Drawing Tiles - How to Make a 2D Game in Java #4
27:26
RyiSnow
Рет қаралды 166 М.
I Made an Android App in MINUTES with This AI Tool
10:21
Creator Magic
Рет қаралды 283 М.