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.
メニューを作成し、その中に終了ボタンを配置しました。クリックすると、戻るボタンのように動作し、アクティビティを閉じます。
このボタンでアプリケーションを完全に終了させたい。プログラムの最後に次のコードを入力しました。
finish(); System.exit(0);