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.
コードを使用して実行可能なアクティビティを呼び出しています
Mover simulationRuntime = new Mover();
何が得られるか実行されonCreate()ませんか?
onCreate()
それは活動を始める間違った方法です。startActivityGoogleが提供する方法を使用する必要があります
startActivity
onCreateフレームワークがアクティビティをインスタンス化するときにのみ、フレームワークによって呼び出されます。コードから別のアクティビティを開始するには、 を作成してIntentから を使用しますstartActivity。
onCreate
Intent
Moverコード例のようにオブジェクトを作成すると、コンストラクターだけが実行されます。
Mover