![Mobile Artificial Intelligence Projects](https://wfqqreader-1252317822.image.myqcloud.com/cover/722/36698722/b_36698722.jpg)
上QQ阅读APP看书,第一时间看更新
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:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/4131112d-51a2-4203-a771-42bd378e4f3d.png?sign=1739335792-5BqIwOv8WNYciXVU5ts5YF6Q9PfTaZtL-0-513fb684e3ebc7855637852dba97f959)
The next dialog is to select the Application name and Project location. Choose whatever you want and click Next:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/d9aae155-2d19-4601-878a-fd8008993202.png?sign=1739335792-hKxfRIZWGHqlnpEu8CbX03x8FLGsWPLd-0-ef8341bb3e4096c3cf071d7021d5b9a0)
Next, choose the target versions for the application to run on:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/1ba1f6d5-aa22-4139-b019-a890b09584de.png?sign=1739335792-K3I5ivDc6AMYXGs06tgAJ3064DXNBSGy-0-e644da3c5470a36e67398a25a2ffe48c)
Then choose a screen for the app; in this case, select an Empty Activity:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/88b0a687-fec0-4f7f-af95-54a2a79ccb4e.png?sign=1739335792-mJGuEjzHtJhKzNKcEisQD6ziZC80JYsP-0-8bd11f6c4f5bc2b1afc106a5f5ccbcf2)
Choose the screen or Activity Name and the corresponding name for the layout or design of the activity screen:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/80508382-73a6-420d-b677-60fe007b8dc0.png?sign=1739335792-cQ2w50gByrupsGXCur1GswKKbAmLIhjq-0-7e9ffb3df977ad91e9885f6ca4a5a261)
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):
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/5821d790-164b-41e5-81d8-0e771d0a4d36.png?sign=1739335792-8eUpxhqdCKzAHafdoRoVmrzHbVICGWEh-0-1960fd43c50733373cc588788da99efa)