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

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):
主站蜘蛛池模板: 宿迁市| 阿尔山市| 桐城市| 鸡泽县| 吴桥县| 长宁区| 调兵山市| 四子王旗| 和平县| 廊坊市| 永宁县| 桦川县| 徐州市| 公主岭市| 紫金县| 安新县| 马龙县| 宁化县| 衡山县| 丰原市| 新宁县| 惠来县| 贡嘎县| 怀柔区| 竹溪县| 黎平县| 芜湖县| 永川市| 岚皋县| 武功县| 海林市| 漳平市| 茌平县| 梅州市| 高雄县| 曲水县| 铜梁县| 怀集县| 新干县| 大田县| 延庆县|