Android: Ask user to either enable wifi or quit app
问题 I'm developing a simple app that requires network connectivity to function. When the app starts, and if there is no wi-fi connection, I want to display a modal dialog to the user with two options: 1) Enable wifi or 2) Quit the application. The problem is that I can't find an android method that can be called to close the application if the 'close app' button is clicked. Is there such a method that I haven't found yet? Or is there some better way to handle this entire use case? 回答1: To check