當我執行代碼時,只有在startActivityForResult()結束後纔會調用startActivity()。我怎樣才能首先啓動startActivity()?我嘗試與線程,但我沒有成功。如何在startActivityForResult()之前啓動startActivity()
// Splash Correct
Intent correct = new Intent("com.quizcontest.alex.SPLASHCORRECT");
startActivity(correct);
Bundle b = new Bundle();
Intent i = new Intent(StartPlaying.this, CorrectAnswer.class);
b.putInt("p1Key", player1Score);
b.putInt("p2Key", player2Score);
b.putInt("rKey", round);
i.putExtras(b);
startActivityForResult(i, 0);
'飛濺正確'做什麼? – Squonk
@MisterSquonk這個飛濺應該彈出1.5秒,第二個活動應該被調用 – Alex