Android Multithreading, creating new thread not executing rest of OnCreate
- by Aidan
Hi Guys,
Basically I'm trying to run 2 threads within the same class at the same time. The code runs but only executes whats in run() and doesnt finish the onCreate method... anyone know why?
public Camera1(){
t = new Thread(this, "My Thread");
t.start();
}
public void run(){
bearing();
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
new Camera1();
makeview();
tracking();
}
Thanks!