官术网_书友最值得收藏!

Creating a new Android project with a single screen

Now that we have installed Android Studio, we will create a simple app to estimate the price of real estate based on certain input.

Once we start Android Studio, it gives us a menu to start creating projects. Click on the Start a new Android Studio project option:

The next dialog is to select the Application name and Project location. Choose whatever you want and click Next:

Next, choose the target versions for the application to run on:

Then choose a screen for the app; in this case, select an Empty Activity:

Choose the screen or Activity Name and the corresponding name for the layout or design of the activity screen:

The project should load in a few seconds after the build is complete. In the project structure, there are three main folders:

  • manifests: This folder contains the manifest file used for permissions and application versioning.
  • java: This folder has all the Java code files (java|app|chapter2|realestateprediction|MainActivity.java).
  • res: This folder has all the layout files and media files used in the application (res|layout|activity_main.xml):
主站蜘蛛池模板: 河间市| 宜黄县| 凤庆县| 洪湖市| 南靖县| 故城县| 万载县| 会理县| 昌都县| 梨树县| 西昌市| 香河县| 东丰县| 保德县| 土默特右旗| 浮梁县| 宁远县| 芒康县| 宜州市| 平和县| 郯城县| 晴隆县| 区。| 克拉玛依市| 乌兰察布市| 临沭县| 洛阳市| 新津县| 绿春县| 巴彦淖尔市| 九寨沟县| 富平县| 赞皇县| 澎湖县| 巴中市| 阳东县| 巴东县| 南郑县| 萝北县| 洪江市| 红桥区|