what happens to the rest of the code of older activity after starting a new activity? here 'doSomeWork()' is called or not? does startActivity() work as a return statement?
public void method(){
Intent intent = new Intent(this, newactivity.class);
startActivity(intent);
doSomeWork();
}