{"id":877,"date":"2016-06-03T04:37:49","date_gmt":"2016-06-03T04:37:49","guid":{"rendered":"http:\/\/abhiandroid.com\/androidstudio\/?p=877"},"modified":"2018-06-05T07:16:36","modified_gmt":"2018-06-05T07:16:36","slug":"create-interface-android-studio","status":"publish","type":"post","link":"https:\/\/abhiandroid.com\/androidstudio\/create-interface-android-studio.html","title":{"rendered":"How To Create An Interface In Android Studio"},"content":{"rendered":"<p>Just like Java classes you can create Interface in android studio. This article will help you create an interface under your package name. Please follow the below given steps to create a new Interface.<\/p>\n<hr \/>\n<h4><strong>How to create an Interface in Android Studio<\/strong><\/h4>\n<p><strong>Step 1<\/strong>: Open your Android Studio and navigate to Android View<\/p>\n<p><strong>Step 2<\/strong>: Select and open <strong>App<\/strong> folder then <strong>Java<\/strong> &gt; yourPackageNAme(com.example.myApplication).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-884\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/06\/Android-View-in-Android-Studio.jpg\" alt=\"Android View in Android Studio\" width=\"345\" height=\"315\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/06\/Android-View-in-Android-Studio.jpg 345w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/06\/Android-View-in-Android-Studio-300x274.jpg 300w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/p>\n<p><strong>Step 3<\/strong>: Right click on package name then <strong>New<\/strong> &gt; <strong>Java Class<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-885\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/06\/new-java-class-in-Android-Studio.jpg\" alt=\"new java class in Android Studio\" width=\"809\" height=\"136\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/06\/new-java-class-in-Android-Studio.jpg 809w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/06\/new-java-class-in-Android-Studio-300x50.jpg 300w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/06\/new-java-class-in-Android-Studio-768x129.jpg 768w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/p>\n<p><strong>Step 4<\/strong>: Android Studio will open a dialog box. Enter a name for your Interface. Change its type by selecting <strong>KIND<\/strong> options and select Interface from the drop down list. Then click on Ok.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-886\" src=\"\/androidstudio\/wp-content\/uploads\/2016\/06\/create-interface-in-Android-Studio.jpg\" alt=\"create interface in Android Studio\" width=\"360\" height=\"190\" srcset=\"https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/06\/create-interface-in-Android-Studio.jpg 360w, https:\/\/abhiandroid.com\/androidstudio\/wp-content\/uploads\/2016\/06\/create-interface-in-Android-Studio-300x158.jpg 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/p>\n<p>Now you will have an Interface under your Package name.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just like Java classes you can create Interface in android studio. This article will help you create an interface under your package name. Please follow the below given steps to create a new Interface. How to create an Interface in Android Studio Step 1: Open your Android Studio and navigate to Android View Step 2: &hellip; <a href=\"https:\/\/abhiandroid.com\/androidstudio\/create-interface-android-studio.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How To Create An Interface In Android Studio<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,1,62],"tags":[],"class_list":["post-877","post","type-post","status-publish","format-standard","hentry","category-android-studio","category-archieve","category-tips"],"psp_head":"<title>How To Create An Interface In Android Studio \u2013 Abhi Android<\/title>\r\n<meta name=\"description\" content=\"Just like Java classes you can create Interface in android studio. This article will help you create an interface under your package name.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/abhiandroid.com\/androidstudio\/create-interface-android-studio.html\" \/>\r\n","_links":{"self":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/types\/post"}],"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=877"}],"version-history":[{"count":2,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/877\/revisions"}],"predecessor-version":[{"id":1460,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/posts\/877\/revisions\/1460"}],"wp:attachment":[{"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/media?parent=877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/categories?post=877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/abhiandroid.com\/androidstudio\/wp-json\/wp\/v2\/tags?post=877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}