android - exit application code - Stack Overflow

android - exit application code - Stack Overflow

瀏覽:361
日期:2024-05-09
Android's design does not favor exiting an application by choice, but rather manages it by the OS. You can bring up the Home application by its corresponding Intent: Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME ....看更多