class MyTask extends AsyncTask<String, Void, String> {
protected String doInBackground(String... params) {
Thread a = new Thread(new Tread1()).start();
Thread b = new Thread(new Tread2()).start();
}
}
class Thread1 implements Runnable {
public void run() {
}
}
class Thread2 implements Runnable {
public void run() {
}
}
Is this possible instantiate 2 tread inside an asynctask in android? What are the pros and cons of this style?