{"id":477,"date":"2016-02-07T08:41:55","date_gmt":"2016-02-07T08:41:55","guid":{"rendered":"http:\/\/abhiandroid.com\/androidstudio\/?page_id=477"},"modified":"2018-06-05T06:54:39","modified_gmt":"2018-06-05T06:54:39","slug":"create-new-activity-android-studio","status":"publish","type":"page","link":"https:\/\/abhiandroid.com\/androidstudio\/create-new-activity-android-studio","title":{"rendered":"How To Create New Activity in Android Studio"},"content":{"rendered":"<p>We create New Activity in Android Studio to create XML file for designing UI and java file coding. Below are the steps to create new Activity in Android Studio:<\/p>\n<hr \/>\n<h4><strong>How To Create New Activity in Android Studio:<\/strong><\/h4>\n<p><span style=\"color: #008000;\"><strong>Step 1: <\/strong><\/span>Firstly, click on\u00a0app &gt; res &gt; layout &gt; Right Click on layout. After that Select New &gt; Activity and choose your Activity as per requirement. Here we choose Blank Activity as shown in figure below.<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-479\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/01\/Create-Activity-in-android-studio.jpg\" alt=\"Create Activity in android studio\" width=\"685\" height=\"392\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/01\/Create-Activity-in-android-studio.jpg 685w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/01\/Create-Activity-in-android-studio-300x172.jpg 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/center><span style=\"color: #008000;\"><strong>Step 2: <\/strong><\/span>After that Customize the Activity in Android Studio. Enter the &#8220;Activity Name&#8221; and &#8220;Package name&#8221; in the Text box and Click on Finish button.<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-480\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/01\/Customize-the-Activity.jpg\" alt=\"Customize the Activity\" width=\"819\" height=\"435\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/01\/Customize-the-Activity.jpg 819w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/01\/Customize-the-Activity-300x159.jpg 300w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/01\/Customize-the-Activity-768x408.jpg 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/center><span style=\"color: #008000;\"><strong>Step 3: <\/strong><\/span>After that your new Activity in Layout\u00a0will be created. Your XML Code is in Text and your Design Output is in Design.<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-481\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/01\/Blank-Activity-Output.jpg\" alt=\"Blank Activity Output\" width=\"639\" height=\"433\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/01\/Blank-Activity-Output.jpg 639w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/01\/Blank-Activity-Output-300x203.jpg 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We create New Activity in Android Studio to create XML file for designing UI and java file coding. Below are the steps to create new Activity in Android Studio: How To Create New Activity in Android Studio: Step 1: Firstly, click on\u00a0app &gt; res &gt; layout &gt; Right Click on layout. After that Select New &hellip; <a href=\"https:\/\/abhiandroid.com\/androidstudio\/create-new-activity-android-studio\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How To Create New Activity in Android Studio<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"home.php","meta":{"footnotes":""},"class_list":["post-477","page","type-page","status-publish","hentry"],"psp_head":"<title>How To Create New Activity in Android Studio \u2013 Abhi Android<\/title>\r\n<meta name=\"description\" content=\"We create New Activity in Android Studio to create XML file for designing UI and java file coding. Below are the steps to create new Activity in Android Studio:\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/abhiandroid.com\/androidstudio\/create-new-activity-android-studio\" \/>\r\n","_links":{"self":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":1,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/477\/revisions"}],"predecessor-version":[{"id":1429,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/pages\/477\/revisions\/1429"}],"wp:attachment":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/media?parent=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}