How does android studio pop up a prompt?

The pop-up dialog box is built with AlertDialogBuilder class and then materialized with AlertDialog class. Let's assume that there is a button on the screen to exit the program. When the user clicks this button, a dialog box will pop up asking whether to quit the program. When the user clicks OK, he exits the program, and when he clicks Cancel, he returns to the program.

Android? Studio is a new Android development environment based on IntelliJ? Ideas, similar to Eclipse? ADT, Android? Studio? Provide integrated? Android? Development tools are used for development and debugging.

Main functions:

1, optimization tip: open your application in the main body, click the tip, and you will get such a suggestion: develop a flat version for your application.

2. Application translation service: allows developers to obtain professional translation directly from developers. Upload your requirements, select a translator, it will show the translator and price, and send it back to the translator within one week.

3. Recommendation tracking: Let developers find out the most effective advertisements.

4. Revenue curve: Show developers their application revenue and divide it by country.

5. Trial version testing and staged display: developers can test the application and then launch test users, and the test results will not be announced to the public. When a version of the test is finished, the developer can launch it to a certain proportion of users.