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.
マニフェストにあるアクティビティがあります:
android:theme="@android:style/Theme.Dialog"
開始するとアクティビティのように見えますが、閉じると、開始したアクティビティで onResume が発生します。実際の対話ではそれができません。onResume を回避するにはどうすればよいですか?
代わりにダイアログを使用する必要があります。メソッドの使用
setContentView(View view)
それを「埋める」ために
できません - それは活動です。onPause などを使用して呼び出し元のアクティビティにステート マシンを追加することもできますが、面倒になる可能性があります。