<How to pass a string-array from the function to t...
# stackoverflow
u
How to pass a string-array from the function to the activity in android kotlin? I am trying to pass a string-array from function to activity. I want to use that array into the spinner. But when I am trying to do this, I am passing an array but the function wants to pass a array of type Int. But in activity array of Array type is required. here is the code of the activity:- fun selectingDistrictLocation() { val (districtArray: Int, districtVisibility: Int, stateWarningVisibility: Int, recyclerViewVisibility: Int) = selectedState(SelectedStateName)...