Writing code in description. Need urgent answer. Whats it use for ? Please tell. If anyone know. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Writing code in description. Need urgent answer. Whats it use for ? Please tell. If anyone know.

Override fun onCreate(savedInstanceState:Bundle?) {Super.onCreate(savedInstanceState) arguments? .let { it: Bundle param1 = it.getString( ARG_PARAM1) }

10th Jun 2020, 8:12 PM
Huba Khan
Huba Khan - avatar
3 Answers
0
First of all it is overriding "fun" method then onCreate is defined there which is called when Android activity starts running very first time. It has parameter savedInstanceBundle which works when you save the state of the application in a bundle (typically non-persistent, dynamic data in onSaveInstanceState), it can be passed back to onCreate if the activity needs to be recreated (e.g., orientation change) so that you don't lose this prior information. If no data was supplied, savedInstanceState is null.
10th Jun 2020, 8:36 PM
Hardik Sharma
Hardik Sharma - avatar
0
Please make yourself more specific or clear. Do you want explanation of full code or something else?
10th Jun 2020, 8:26 PM
Hardik Sharma
Hardik Sharma - avatar
0
I need explanation of the code that i mentioned .
10th Jun 2020, 8:27 PM
Huba Khan
Huba Khan - avatar