What is the chief purpose of line five in this code snippet?'''override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_post_create) if (savedInstanceState != null) return val fragment = CreatePostFragment() supportFragmentManager .beginTransaction() .add(R.id. fragment_container, fragment) .commit()}

🎲 Try a Random Question  |  Total Questions in Quiz: 50  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Android Quiz — practice the complete quiz, review flashcards, or try a random question.

MCQs For LinkedIn Skill Assessments.


What is the chief purpose of line five in this code snippet?<br>'''<br>override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_post_create)<br> if (savedInstanceState != null) return<br> val fragment = CreatePostFragment()<br> supportFragmentManager<br> .beginTransaction()<br> .add(R.id. fragment_container, fragment)<br> .commit()<br>}<br>