I've just discovered this method :
new Thread(
new Runnable() {
public void run() {
try {
// MY CODE
} catch (Exception e) {
e.printStackTrace();
}
}
}).start();
I wonder if I can create a method with the parameter is the function I will put to // MY CODE. Can I do that ? and how :)