### Set up Activity as Compose Entry Point Source: https://developer.android.com/develop/ui/compose/migrate/migration-scenarios/navigation Replace the View layout setup in your Activity with setContent to use Compose. ```kotlin class SampleActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) // setContentView(this, R.layout.activity_sample) setContent { SampleApp(/* ... */) } } } MigrationCommonScenariosSnippets.kt ``` -------------------------------- ### Navigate to a Composable Screen Source: https://developer.android.com/develop/ui/compose/migrate/migration-scenarios/navigation Example of navigating to a Composable screen using Navigation Compose. Ensure the target route is correctly defined and accessible. ```kotlin val secondRoute = backStackEntry.toRoute() SecondScreen( id = secondRoute.id, onIconClick = { // findNavController().navigate(secondScreenToThirdScreenAction) navController.navigate(Third) } ) ``` -------------------------------- ### XML Layout for a Simple Screen Source: https://developer.android.com/develop/ui/compose/migrate/strategy This XML file defines a basic screen layout with a title, subtitle, body text, and a confirmation button. It serves as the source for a Compose migration example. ```XML