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

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):
主站蜘蛛池模板: 奉节县| 庆安县| 靖边县| 大厂| 武威市| 华阴市| 揭西县| 桃园市| 吐鲁番市| 华蓥市| 湖口县| 黑水县| 南漳县| 尉氏县| 贵德县| 婺源县| 凌源市| 墨竹工卡县| 黄浦区| 郎溪县| 万山特区| 阿坝| 格尔木市| 襄汾县| 耒阳市| 新乡市| 海宁市| 清水县| 平乐县| 揭东县| 海安县| 临西县| 汶上县| 香河县| 泸州市| 边坝县| 靖边县| 泰来县| 宁化县| 当雄县| 白银市|