after some time of programming I decided to download the Android SDK and see if I should start focusing on mobile development to start making money.
At the moment I am just trying to get used to how the android works and up until now I have a basic understanding of the events and the way the xml files interact with the .java files.
To learn I'm just trying to do tests of basic stuff and now I have something like this :
TextView text = (TextView)findViewById(R.id.lol);
number mnumber = new number();
mnumber.change_in_number();
text.setText(mnumber.get_in_number() + "");
Let me explain; number is a class I make which has an integer varibale inside, a function to get the value (get_in_number) and a function to change the integer variable to a random value (change_in_number). All of this functions work es intended for they are very simple but when I run the code this only happens once (as expected).
My question now is... Exactly how would I make this code repeat itself every X amount of seconds? You know, to have the value changed multiple times without the need of any event while the application is running.
I know this question is really simple and probably also easy to answer but right now I really need help with getting started. Thanks in advance for your help.