Here is my Code
val launcher1 = rememberLauncherForActivityResult(contract =
ActivityResultContracts.GetContent()) { uri: Uri? ->
imageUri1 = uri
}
And I must give to ViewModel Like this
fun deviceComplete(deviceId: Int?, file:File?) = viewModelScope.launch{
}
How to convert this uri to File ..?? I'm really don't know