![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=1739272864-bVOKqnKsMurtUUTtcXbyPG3QTwzJBKdM-0-4d125885f0698327036c249d71b48914)
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=1739272864-Z0tP0TIvTPaRuEwZ4CxRsFJM5qOLNWwQ-0-e68a6e5181cfd667d8d57646e302c6c5)
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=1739272864-8nTzD55SvN4fr4bPe8zWyjRm8lO31dKG-0-21b898c04976611bb21e9afbc868e45e)
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=1739272864-RAjeelSM1ZD8tHDZPddNow8noFSniOR1-0-37d7bcc8c00adca5c168bea36575939f)
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=1739272864-9zuAMefVOT6zNOcwIAsBR7xHjjH5ry2o-0-26de17d4347df41e8b277c0650b54778)
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=1739272864-zOwWAk4aF1n5sFrE9aI3IJTLu2iTR2q2-0-38c9e9d33aaf8b4831d4f7e43ce33b02)