0

What's Bundle and savedInstanceState ?

Override protected void onCreate(Bundle savedInstanceState) {//some code} I know what they do ,but what are they? Is Bundle a class and savedInstanceState an object?

19th Dec 2020, 3:39 AM
Mons Joseph
Mons Joseph - avatar
1 ответ
+ 3
Yes, Bundle is class from android.os package. savedInstanceState is object of Bundle class. You can rename it to something else which is valid identifier.
19th Dec 2020, 4:42 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar