Create object android not final



I have a problem: well, I have this class:



class objectoA{
int a;
int b;

objetoA(int tam, int long)
{
this.a=tam;
this.b=long;
}
}


Also , I have a Activity that have a Spinner, SeekBar, and button. I want to click to button and this botton catch the values of spinner and seekbar and put this into the objetoA constructor but I dont know do that because if I put the code into setOnClickListener eclipse show a error and If I put the code out the setOnClickListener , the object put default values. what have I do? Thanks you!!


No comments:

Post a Comment