{"id":16952,"date":"2022-11-28T15:12:04","date_gmt":"2022-11-28T14:12:04","guid":{"rendered":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/?p=16952"},"modified":"2022-11-29T07:14:40","modified_gmt":"2022-11-29T06:14:40","slug":"how-to-create-an-android-app-step-by-step","status":"publish","type":"post","link":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/","title":{"rendered":"How to create an android app step by step"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\">To <strong>create a native Android app<\/strong>, which can directly use all the features and functions available on Android smartphones or tablets, it is necessary to use Java but above all some APIs designed exclusively for the Android platform. Therefore it is necessary, even if not at a professional level, to have a good knowledge of Java programming. These APIs are nothing more than Java libraries, that is, a set of files with the <strong>jar extension<\/strong>, which allow you to perform common tasks such as: drawing text, shapes and colors on the screen, playing sounds or videos and interacting with the installed hardware sensors on the mobile. Over the years, these Android APIs have evolved so much as to make development in the Android environment more and more stable and intuitive.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">As a result, being an Android developer today is easier than ever, even more so if you use Android Studio, the official tool to develop applications with this amazing operating system.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><a href=\"https:\/\/developer.android.com\/studio\" target=\"_blank\" rel=\"noreferrer noopener\">Android Studio <\/a>is an integrated development environment available for free under the Apache 2.0 license, and owned by Google and JetBrain.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">In this tutorial I&#8217;ll show you how to create your first Android app with this amazing IDE. While doing so, I&#8217;ll also introduce you to important Android-specific concepts like views, layouts, and activities.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">To make things less complicated, we&#8217;ll start from scratch to create a very simple and user-friendly app. If you prefer to write less code or need to develop your app as quickly as possible, consider using one of the native Android app template containers available today, I&#8217;m talking about <a href=\"https:\/\/codecanyon.net\/category\/mobile\/android\" target=\"_blank\" rel=\"noreferrer noopener\">CodeCanyon<\/a>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Codecanyon <\/strong>is a web portal where you can find thousands of low-cost scripts and plugins for your website or app, even starting from just $2.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/cms-assets.tutsplus.com\/uploads\/users\/769\/posts\/34427\/image\/codecanyon%20mobile%20android%20templates%20bestsellers.jpg\" alt=\"source: https:\/\/code.tutsplus.com\/\"\/><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/code.tutsplus.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Credit: https:\/\/code.tutsplus.com\/<\/a><\/figcaption><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Using an already developed template, you can have an app ready to publish in hours. However, it is not necessary to use one of the templates offered by CodeCanyon, given that Android Studio already has its own.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">In questo articolo:<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#1_Create_a_new_project\" >1. Create a new project<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#2_Create_an_Activity\" >2. Create an Activity<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#3_Create_a_layout\" >3. Create a layout<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#4_Implement_event_handlers\" >4. Implement event handlers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span><strong>Prerequisites<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">To correctly follow what is set out in this article, you will need Android Studio, better if you download the latest version, <a href=\"https:\/\/developer.android.com\/studio\" target=\"_blank\" rel=\"noreferrer noopener\">you will find it available here<\/a>. You also need to install the Java development platform as described above. If it is not available on your computer, <a href=\"https:\/\/www.oracle.com\/java\/technologies\/javase-downloads.html\" target=\"_blank\" rel=\"noreferrer noopener\">download it from this link <\/a>by clicking on the <strong>JDK Download item<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Now, if you are new to Android Studio and Java, please refer to the following video tutorial to see how to install and configure it:<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Install Android Studio on Windows 10\/11 | 2022 | Foxandroid\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/PU7-GGA8Xks?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/youtu.be\/PU7-GGA8Xks\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install Android Studio on Windows 10\/11<\/a><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Create_a_new_project\"><\/span><strong>1. Create a new project<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">First, you&#8217;ll need an Android Studio project to start designing, developing, and building your app. Then launch Android Studio and click <strong>Create new project in Android Studio button<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">On the next screen, choose <strong>Add no activity, <\/strong>because we don&#8217;t want to use any of the templates offered by Android Studio. Then press <strong>Next <\/strong>to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/cms-assets.tutsplus.com\/uploads\/users\/362\/posts\/34497\/image\/q1.png\" alt=\"Create new project with Android Studio\"\/><figcaption class=\"wp-element-caption\">Create new project with Android Studio<\/figcaption><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">You will now see a form where you can enter details that are important to your app, such as the name. The name is, of course, what your users will see on their phones when they install your app.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">You will notice that you also need to give the package name, it is nothing more than a unique identifier for your app on Google Play. You must follow the package naming conventions in Java. For example, if your app name is MyFirstApp and you work for an organization whose website address is example.com, the package name would be, following the conventions mentioned above, &#8220;<strong>com.example.myfirstapp<\/strong>&#8220;. Or simply, &#8220;<strong>en.name.surname.myfirstapp<\/strong>&#8220;.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Next, you need to decide which programming language you want to use for app coding. So for now, select <strong>Java <\/strong>and click <strong>Finish<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/cms-assets.tutsplus.com\/uploads\/users\/362\/posts\/34497\/image\/Screenshot%20from%202020-01-11%2018-04-59.png\" alt=\"Complete new project creation with Android Studio\"\/><figcaption class=\"wp-element-caption\">Complete new project creation with Android Studio<\/figcaption><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Android Studio will now take a few minutes to build and configure your first Android project.<\/p>\n\n\n\n<hr>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Read also: <a href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/the-best-prestashop-hosting-pre-installed\/\">The Best Prestashop Hosting Pre-Installed<\/a><\/p>\n\n\n\n<hr>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Create_an_Activity\"><\/span><strong>2. Create an Activity<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">An activity is one of the most important components of an Android app. It&#8217;s what allows you to create and show a user interface. An app can have one or more Activities, each of which allows the user to perform an action. For example, an app that acts as an email client might have three activities: one for user registration, one for logging in, and one for composing an email message.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">To keep this tutorial simple, we&#8217;ll create an app with just one Actvity. Then, to create the Activity, in Android Studio&#8217;s <strong>Project panel<\/strong>, right-click <strong>the app entry <\/strong>and select <strong>New -&gt; Activity -&gt; Empty activity<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">In the dialog that opens, type <strong>MainActivity as the name of the activity, then select the Launcher Activity <\/strong>option and press <strong>Finish<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Checking the checkbox, relating to the <strong>Launcher Activity option, <\/strong>is of fundamental importance, this will allow users to open this Activity when starting the Android app. Therefore, an activity, with the Launcher activity option checked, acts as an entry point for your app, i.e. it is the Activity that will start up the app.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Create_a_layout\"><\/span><strong>3. Create a layout<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Each Activity is usually associated with at least one layout. When you created your Activity, in the previous step, you also generated an empty layout associated with it. Just to familiarize yourself with the Layouts, you can take a look at the <strong>activity_main.xml file<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">The layout of an Activity consists mainly of views and groups of views. A View, or simply View, sometimes referred to as a widget, is a single user interface component called controls. For example, buttons, text fields, labels and progress bars are examples of views. A view group is a component that can act as a container for other views. Usually, view groups are also useful for positioning and setting the size of views at the same time.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>ConstraintLayout <\/strong>is one of the groups of views, i.e. it acts as a container for other, more powerful and flexible views available today to create an Android app. By default, this is the root of your Activity&#8217;s layout XML file. Its contents look something like this:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n&lt;androidx.constraintlayout.widget.ConstraintLayout\n\n   xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\n\n   xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"\n\n   xmlns:tools=\"http:\/\/schemas.android.com\/tools\"\n\n   android:layout_width=\"match_parent\"\n\n   android:layout_height=\"match_parent\"\n\n   tools:context=\".MainActivity\">\n\n   &lt;!-- More code here -->\n\n&lt;\/androidx.constraintlayout.widget.ConstraintLayout><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">We will create a simple app, with functions like a watch in this tutorial. In addition to the local time, it will be able to show the current time for two different countries: Italy and Germany.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">To allow the user to choose the country they are interested in, our layout will have two <strong>Button <\/strong>views, one for Germany and one for Italy. And to actually show the time, our layout will also have a <strong>TextClock <\/strong>view.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">As a result, add the following code inside the ConstraintLayout:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">&lt;TextClock\n\n   android:id=\"@+id\/my_clock\"\n\n   android:layout_width=\"wrap_content\"\n\n   android:layout_height=\"wrap_content\"\n\n   app:layout_constraintBottom_toBottomOf=\"parent\"\n\n   app:layout_constraintTop_toTopOf=\"parent\"\n\n   app:layout_constraintLeft_toLeftOf=\"parent\"\n\n   app:layout_constraintRight_toRightOf=\"parent\"\n\n   android:format12Hour=\"h:mm:ss a\"\n\n   android:textSize=\"32sp\"\/>\n\n&lt;Button\n\n   android:layout_width=\"match_parent\"\n\n   android:layout_height=\"wrap_content\"\n\n   app:layout_constraintBottom_toBottomOf=\"parent\"\n\n   android:text=\"Time in Germany\"\n\n   android:onClick=\"onClickGermany\"\n\n   android:id=\"@+id\/germany_button\"\/>\n\n&lt;Button\n\n   android:layout_width=\"match_parent\"\n\n   android:layout_height=\"wrap_content\"\n\n   app:layout_constraintBottom_toTopOf=\"@id\/germany_button\"\n\n   android:text=\"Time in Italy\"\n\n   android:onClick=\"onClickItaly\"\n\n   android:id=\"@+id\/italy_button\"\/><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Note that the <strong>layout_width <\/strong>and <strong>layout_height properties <\/strong>of each view set the size of the view. Other properties, however, such as <strong>layout_constraintBottom_toBottomOf <\/strong>and <strong>layout_constraintLeft_toLeftOf <\/strong>are required to position the view. With the code, shown above, the <strong>TextClock <\/strong>will be placed in the center of the screen and both <strong>buttons will <\/strong>be placed towards the bottom of the screen.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">By default, the TextClock only shows the hours and minutes. The <strong>format12Hour property <\/strong>allows you to change the display format of the hours. In the above code, its value is set to <strong>&#8220;h:mm:ss a<\/strong>&#8220;. This code informs the TextClock that it should display the hours, minutes, seconds, and also an AM\/PM suffix.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Also note that each Button has an onClick property. This property is used to assign click event handlers to buttons.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">The handlers have not been implemented yet, or rather we still have to decide what the app should do at the click of a button, but you can ask Android Studio to generate them for you by default from the IDE. To do this, hover over the event handler&#8217;s name until you see a red light bulb appear next to it. Then click on the light bulb and select the second option, which is the one with the yellow light bulb.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/cms-assets.tutsplus.com\/uploads\/users\/362\/posts\/34497\/image\/Screenshot%20from%202020-01-11%2019-45-56.png\" alt=\"Event handler creation\"\/><figcaption class=\"wp-element-caption\">Event handler creation<\/figcaption><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">At this point, you can try pressing <strong>Shift-F10 <\/strong>to run the app. If there are no errors in your XML, you should see something like this on your phone or emulator:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2021\/01\/activity_android_studio.png\" alt=\"Run Android apps\"\/><figcaption class=\"wp-element-caption\">Run Android apps<\/figcaption><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">it should be pointed out that Android Studio uses device emulators to run the app, i.e. the developer has the option to choose various devices on which to view the app under development.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Back to us, although the buttons still don&#8217;t work, the TextClock should already show the local time, updating regularly every second, just like a normal clock.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Implement_event_handlers\"><\/span><strong>4. Implement event handlers<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">When you generated the event handlers for the two buttons, Android Studio added two methods to your Activity&#8217;s Java file, namely in <strong>MainActivity.java<\/strong>. If you open this file, you should find the following code inside:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">public void onClickGermany(View view) {\n\n} \u00a0\n\npublic void onClickItaly(View view) {\n\n}<\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Inside the two event handlers, all we have to do is change the time zone of the TextClock. But how do you reference a view in the layout XML file from within the Java file? Well, you can use <strong>findViewById() method<\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Just by analogy, if you&#8217;ve already had experience with &nbsp;<a href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/grapesjs-web-builder\/\">Javascript<\/a>\u00a0, that&#8217;s exactly what a developer does with a very similar Javascript method, to reach the properties of an element contained in an html page.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Back to the <strong>findViewById method<\/strong>, once you&#8217;ve got a reference to the TextClock, you can call the <strong>setTimeZone() method <\/strong>to change its timezone. Then add the following code inside the <strong>onClickGermany() event<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">TextClock clock = findViewById(R.id.my_clock);\nclock.setTimeZone(\"Europe\/Berlin\");<\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Similarly, add the following code inside the <strong>onClickItaly() event<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">TextClock clock = findViewById(R.id.my_clock);\nclock.setTimeZone(\"Europe\/Italy\");<\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">If you&#8217;re wondering what <strong>R is<\/strong>, well done, it&#8217;s nothing more than an automatically generated class, during the compilation of the app by Android Studio, and which contains, among other things, the IDs of all the views present in your layouts. The <strong>findViewById() method <\/strong>expects you to use this class to pass it a valid ID.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">At this point, you can press <strong>Shift-F10 again <\/strong>to re-run the app. You should now be able to click the buttons to change the time zone of your watch.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">In addition to modifying the code of your first app, you can also try dragging views directly onto an Activity and see what the system has written for you inside the previously managed xml file. Therefore the views can be either positioned by hand by directly typing the code inside the xml file or dragged, with the typical drag &amp; drop, directly onto the Activity displayed at that moment on Android Studio.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Therefore, each Activity consists of an xml file, which manages its graphic display, and a file with the java extension, which implements its actions and contains the code that must be executed for each event of a view.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">This type of approach is very similar to the one used by many development frameworks, such as Visual Studio.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong>Conclusion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">You&#8217;ve just created your first fully functional native app for Android. I advise you, if you feel like it, to make some changes. For example, you might try using other formats or time zones. You can also try changing the button positions and the display of the clock itself.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">There are dozens of views and groups of views that you can use to build your apps. Refer to <a href=\"https:\/\/developer.android.com\/docs\" target=\"_blank\" rel=\"noreferrer noopener\">the official documentation <\/a>to know them all.<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Android Studio Tutorial  - How To Make Hello World App in Android Studio\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/0k4rz5RwLxY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/youtu.be\/0k4rz5RwLxY\" target=\"_blank\" rel=\"noreferrer noopener\">Develop a Hello World app with Android Studio<\/a><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Are you interested in finding out how to create an Android app, exploring all the features available on Android smartphones or tablets?<\/p>\n","protected":false},"author":1,"featured_media":16964,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[268,1059,1055],"tags":[5090,3715,5159,3713,2810,3038,3653,5187,2941,2937,2835,3717,2837,3719,3721,3044,2839,3688,2841,2843,2845],"class_list":["post-16952","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles-en","category-development","category-news-en","tag-ai-en","tag-android-en","tag-android-studio-en","tag-create-android-app","tag-development-en","tag-email-en","tag-features-en","tag-framework-en","tag-how-en","tag-how-to-en","tag-html-en","tag-java-en","tag-new-en","tag-prestashop-en","tag-root-en","tag-system-en","tag-to-en","tag-tool-en","tag-tutorial-en","tag-video-en","tag-web-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create an android app step by step<\/title>\n<meta name=\"description\" content=\"Are you interested in finding out how to create an Android app, exploring all the features available on Android smartphones or tablets?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create an android app step by step.\" \/>\n<meta property=\"og:description\" content=\"Are you interested in finding out how to develop an Android app, exploring all the features available on Android smartphones or tablets?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/\" \/>\n<meta property=\"og:site_name\" content=\"Antonio Lamorgese\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-28T14:12:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-29T06:14:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2022\/11\/How-to-create-an-android-app-step-by-step.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Antonio Lamorgese\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to create an android app step by step.\" \/>\n<meta name=\"twitter:description\" content=\"Are you interested in finding out how to develop an Android app, exploring all the features available on Android smartphones or tablets?\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2022\/11\/How-to-create-an-android-app-step-by-step.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@AntonioLamorge3\" \/>\n<meta name=\"twitter:site\" content=\"@AntonioLamorge3\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"Antonio Lamorgese\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/\"},\"author\":{\"name\":\"Antonio Lamorgese\",\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/#\\\/schema\\\/person\\\/264cf3af38edc93a3362a4c47ec5b2f0\"},\"headline\":\"How to create an android app step by step\",\"datePublished\":\"2022-11-28T14:12:04+00:00\",\"dateModified\":\"2022-11-29T06:14:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/\"},\"wordCount\":1913,\"publisher\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/#\\\/schema\\\/person\\\/264cf3af38edc93a3362a4c47ec5b2f0\"},\"image\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/How-to-create-an-android-app-step-by-step.jpg\",\"keywords\":[\"AI\",\"android\",\"Android studio\",\"create android app\",\"development\",\"email\",\"features\",\"framework\",\"how\",\"how to\",\"html\",\"java\",\"new\",\"Prestashop\",\"root\",\"system\",\"to\",\"tool\",\"tutorial\",\"video\",\"web\"],\"articleSection\":[\"Blog Articles\",\"Development\",\"News\"],\"inLanguage\":\"it-IT\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/\",\"url\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/\",\"name\":\"How to create an android app step by step\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/How-to-create-an-android-app-step-by-step.jpg\",\"datePublished\":\"2022-11-28T14:12:04+00:00\",\"dateModified\":\"2022-11-29T06:14:40+00:00\",\"description\":\"Are you interested in finding out how to create an Android app, exploring all the features available on Android smartphones or tablets?\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/How-to-create-an-android-app-step-by-step.jpg\",\"contentUrl\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/How-to-create-an-android-app-step-by-step.jpg\",\"width\":800,\"height\":450,\"caption\":\"How to create an android app step by step\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/how-to-create-an-android-app-step-by-step\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Development\",\"item\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/en\\\/category\\\/development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to create an android app step by step\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/#website\",\"url\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/\",\"name\":\"Antonio Lamorgese\",\"description\":\"Il web e i suoi strumenti operativi\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/#\\\/schema\\\/person\\\/264cf3af38edc93a3362a4c47ec5b2f0\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/#\\\/schema\\\/person\\\/264cf3af38edc93a3362a4c47ec5b2f0\",\"name\":\"Antonio Lamorgese\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/ChiSono.png\",\"url\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/ChiSono.png\",\"contentUrl\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/ChiSono.png\",\"width\":120,\"height\":130,\"caption\":\"Antonio Lamorgese\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/ChiSono.png\"},\"description\":\"Amministratore di rete e sviluppatore. Dopo anni di esperienza nel settore, ho ideato un sistema di gestione dati MYSQL in PHP senza scrivere una sola riga di codice.&nbsp;Scopri di pi\u00f9....\",\"sameAs\":[\"https:\\\/\\\/www.Phpcodewizard.it\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/antonio-lamorgese-660735190\\\/\",\"https:\\\/\\\/pinterest.it\\\/antoniolamorgese9711\\\/\",\"https:\\\/\\\/x.com\\\/AntonioLamorge3\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/antoniolamorgese\",\"https:\\\/\\\/tumblr.com\\\/blog\\\/phpcodewizard\"],\"url\":\"https:\\\/\\\/www.phpcodewizard.it\\\/antoniolamorgese\\\/author\\\/antonio-lamorgese\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create an android app step by step","description":"Are you interested in finding out how to create an Android app, exploring all the features available on Android smartphones or tablets?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/","og_locale":"it_IT","og_type":"article","og_title":"How to create an android app step by step.","og_description":"Are you interested in finding out how to develop an Android app, exploring all the features available on Android smartphones or tablets?","og_url":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/","og_site_name":"Antonio Lamorgese","article_published_time":"2022-11-28T14:12:04+00:00","article_modified_time":"2022-11-29T06:14:40+00:00","og_image":[{"width":800,"height":450,"url":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2022\/11\/How-to-create-an-android-app-step-by-step.jpg","type":"image\/jpeg"}],"author":"Antonio Lamorgese","twitter_card":"summary_large_image","twitter_title":"How to create an android app step by step.","twitter_description":"Are you interested in finding out how to develop an Android app, exploring all the features available on Android smartphones or tablets?","twitter_image":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2022\/11\/How-to-create-an-android-app-step-by-step.jpg","twitter_creator":"@AntonioLamorge3","twitter_site":"@AntonioLamorge3","twitter_misc":{"Scritto da":"Antonio Lamorgese","Tempo di lettura stimato":"12 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#article","isPartOf":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/"},"author":{"name":"Antonio Lamorgese","@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/#\/schema\/person\/264cf3af38edc93a3362a4c47ec5b2f0"},"headline":"How to create an android app step by step","datePublished":"2022-11-28T14:12:04+00:00","dateModified":"2022-11-29T06:14:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/"},"wordCount":1913,"publisher":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/#\/schema\/person\/264cf3af38edc93a3362a4c47ec5b2f0"},"image":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#primaryimage"},"thumbnailUrl":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2022\/11\/How-to-create-an-android-app-step-by-step.jpg","keywords":["AI","android","Android studio","create android app","development","email","features","framework","how","how to","html","java","new","Prestashop","root","system","to","tool","tutorial","video","web"],"articleSection":["Blog Articles","Development","News"],"inLanguage":"it-IT"},{"@type":"WebPage","@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/","url":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/","name":"How to create an android app step by step","isPartOf":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#primaryimage"},"image":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#primaryimage"},"thumbnailUrl":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2022\/11\/How-to-create-an-android-app-step-by-step.jpg","datePublished":"2022-11-28T14:12:04+00:00","dateModified":"2022-11-29T06:14:40+00:00","description":"Are you interested in finding out how to create an Android app, exploring all the features available on Android smartphones or tablets?","breadcrumb":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#primaryimage","url":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2022\/11\/How-to-create-an-android-app-step-by-step.jpg","contentUrl":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2022\/11\/How-to-create-an-android-app-step-by-step.jpg","width":800,"height":450,"caption":"How to create an android app step by step"},{"@type":"BreadcrumbList","@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/how-to-create-an-android-app-step-by-step\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/"},{"@type":"ListItem","position":2,"name":"Development","item":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/en\/category\/development\/"},{"@type":"ListItem","position":3,"name":"How to create an android app step by step"}]},{"@type":"WebSite","@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/#website","url":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/","name":"Antonio Lamorgese","description":"Il web e i suoi strumenti operativi","publisher":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/#\/schema\/person\/264cf3af38edc93a3362a4c47ec5b2f0"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":["Person","Organization"],"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/#\/schema\/person\/264cf3af38edc93a3362a4c47ec5b2f0","name":"Antonio Lamorgese","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2019\/06\/ChiSono.png","url":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2019\/06\/ChiSono.png","contentUrl":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2019\/06\/ChiSono.png","width":120,"height":130,"caption":"Antonio Lamorgese"},"logo":{"@id":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-content\/uploads\/2019\/06\/ChiSono.png"},"description":"Amministratore di rete e sviluppatore. Dopo anni di esperienza nel settore, ho ideato un sistema di gestione dati MYSQL in PHP senza scrivere una sola riga di codice.&nbsp;Scopri di pi\u00f9....","sameAs":["https:\/\/www.Phpcodewizard.it\/","https:\/\/www.linkedin.com\/in\/antonio-lamorgese-660735190\/","https:\/\/pinterest.it\/antoniolamorgese9711\/","https:\/\/x.com\/AntonioLamorge3","https:\/\/www.youtube.com\/user\/antoniolamorgese","https:\/\/tumblr.com\/blog\/phpcodewizard"],"url":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/author\/antonio-lamorgese\/"}]}},"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/posts\/16952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/comments?post=16952"}],"version-history":[{"count":0,"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/posts\/16952\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/media\/16964"}],"wp:attachment":[{"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/media?parent=16952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/categories?post=16952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpcodewizard.it\/antoniolamorgese\/wp-json\/wp\/v2\/tags?post=16952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}