- 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) }
3 odpowiedzi
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.
0
Please make yourself more specific or clear. Do you want explanation of full code or something else?
0
I need explanation of the code that i mentioned .