android4-5 Exercise 1: Name Input ============================== Imports: import android.content.Intent import android.net.Uri import androidx.compose.foundation.clickable import androidx.compose.material3.Button import androidx.compose.material3.Checkbox import androidx.compose.material3.OutlinedTextField import androidx.compose.material3.Text import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.runtime.setValue import androidx.compose.ui.platform.LocalContext @Composable fun NameInput() { var name by rememberSaveable { mutableStateOf("") } Column(modifier = Modifier.padding(16.dp)) { OutlinedTextField( value = name, onValueChange = { name = it }, label = { Text("Your name") } ) Text(if (name.isBlank()) "Type your name" else "Hello, $name!") } } Expected: typing shows your text and the greeting updates as you type. Without "name = it" the field redraws with the old (empty) value, so nothing you type appears: the field only reports the change; storing it in state is your job. If Android Studio marks TextField/OutlinedTextField as deprecated, see the docs' state-based text field (TextFieldState). Code unrun.