![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=1738888311-jSFoLXtdaRkqTf4olC0WZpfhubkbFZib-0-2c5f52ca16339d60336e625f59bc14fe)
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=1738888311-EIwbKiglQIBrn6cYW3mWsqhOvkb0uKno-0-d8a301302c6d6ffb31caa69c4d8a794b)
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=1738888311-gXttp9SnBEh1YWPNnBVBgTnGVb9suJtV-0-71bf3dbfa661d00ce8189446d7d01155)
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=1738888311-Nhpz8GnSF9Rhf3dbELqZ3KPxnQS8JaUR-0-5e1cb561bb9e58b5bed91fd82ec88927)
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=1738888311-1rubMsZKFcxtF7Uuv0TY6oLW44NfPcLZ-0-70126991d674292fff63bedd512cbd39)
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=1738888311-iv37RZKlFBwxeYbMJZcxqcmkcTLr1kPD-0-704d66692f431974da89a8ea5a2c19cb)