Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
スレッド内でこれを実行できない理由はありますか?「Looper.prepare()を呼び出していないスレッド内にハンドラーを作成できません」というメッセージが表示されます。
_currentActivity.runOnUiThread(new Runnable() { public void run() { _currentActivity.setContentView(_nextScreen); } });
UI非UIスレッドで作品を更新することはできません。
UI
をユーザーに更新する場合は、実装するか、いずれかのスレッドUIを使用する必要があります。HandlerUI
Handler