Do spinners natively allow int arrays in android?
I've looked around but I couldn't find any answers.  Anyway, as the title says is there any way I can set a spinner from an int array in android?  For example what I am trying to do is set a max value ranging from 1 to any max number (i'll call it 'n') and the user has to select a number from one to the max number.  

Right now I am trying to populate an int array from 1 to the max number, however that will take O(n) complexity and I cannot figure out how to actually put the int values in the spinner.  Can someone please help me out? thanks!
Do spinners natively allow int arrays in android?
===

I've looked around but I couldn't find any answers.  Anyway, as the title says is there any way I can set a spinner from an int array in android?  For example what I am trying to do is set a max value ranging from 1 to any max number (i'll call it 'n') and the user has to select a number from one to the max number.  

Right now I am trying to populate an int array from 1 to the max number, however that will take O(n) complexity and I cannot figure out how to actually put the int values in the spinner.  Can someone please help me out? thanks!