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

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):
主站蜘蛛池模板: 淳化县| 乌兰浩特市| 奉化市| 门源| 永和县| 招远市| 惠安县| 宿州市| 内黄县| 星座| 巴林左旗| 正定县| 禄劝| 喀喇| 资源县| 灌阳县| 漠河县| 高平市| 阿坝| 永川市| 扶沟县| 井冈山市| 和田县| 日照市| 淮安市| 尉犁县| 余江县| 永寿县| 苏尼特左旗| 乐都县| 亳州市| 吉木萨尔县| 尤溪县| 普宁市| 肥乡县| 孟连| 阿拉善右旗| 长沙县| 屏山县| 当阳市| 柞水县|