my goal is to insert to a certain db 2 values, id and pass. I have a registeration page which asks for that data and a button to complete the action. So on the button listener what should I do?many told me to use AsyncTask (which I don't know to use) instead of Thread. Remember that this class needs to get 2 parameters id and pass .. and as far as I know threads starts after using the start() method which invoke the run method, and the run method has no parameters.. so how can I pass those 2 parameters? Anyway I'm very confused. Another thing is that if I get any kind of error on the catch block I will put the error on a certain string something like : String error = exceptionInstance.toString(); and then I can take see that string from the registeration page and print the error.
myThreadInstance.start(); textViewInstance.setText(myThreadInstance.getError());
It's some kind of a marathon.. I'M CONFUSED!!!!!!!