You can add two event routines which are called when a Spinner item is clicked:
B4X:
Private Sub SpinnerWidth_ItemClick (Position As Int, Value As Object)
CurrentWidth = Value
End Sub
Private Sub SpinnerHeight_ItemClick (Position As Int, Value As Object)
CurrentHeight = Value
End Sub
In your code, you try to get values from the Spinner before you have filled them !?
And then, what do you want to do with other values from the Spinners.
You have no code when the user selects a new value from a Spinner.
So, as I do not understand the logic of your code, I want to understand what your problem is.
So, what do want to do with your program ?
I prefer solving problems instead of just answering a question, which does not reflect the problem.