{"id":3438,"date":"2024-04-11T07:46:43","date_gmt":"2024-04-11T07:46:43","guid":{"rendered":"https:\/\/favtutor.com\/articles\/?p=3438"},"modified":"2024-04-11T08:14:12","modified_gmt":"2024-04-11T08:14:12","slug":"gemini-in-android-studio-features","status":"publish","type":"post","link":"https:\/\/favtutor.com\/articles\/gemini-in-android-studio-features\/","title":{"rendered":"Gemini Pro Now in Android Studio: What&#8217;s New for Developers?"},"content":{"rendered":"\n<p>Google is bringing Gemini to more of its products, with Android Studio now the latest on the list.<\/p>\n\n\n\n<p><strong>Highlights:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Google renames its AI coding assistant Studio Bot to &#8216;Gemini in Android Studio&#8217;<\/li>\n\n\n\n<li>Brings several features such as asking queries related to Android Programming and using Gemini API to create generative AI applications.<\/li>\n\n\n\n<li>Currently released in preview mode in the Android Studio Jellyfish version.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Gemini in Android Studio Explained<\/strong><\/h2>\n\n\n\n<p>Google <a href=\"https:\/\/android-developers.googleblog.com\/2024\/04\/android-studio-uses-gemini-pro.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">announced<\/a> they will use the Gemini 1.0 Pro model to make Android development much faster and easier. The Studio Bot will now be called &#8216;Gemini in Android Studio&#8217;. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;Today we\u2019re excited to announce that Android Studio is using the Gemini 1.0 Pro model to make Android development faster and easier, and we\u2019ve seen significant improvements in response quality over the last several months through our internal testing.&#8221;<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Gemini in Android Studio will be the new name for the AI app development assistant available in the Android Studio IDE.<\/strong><\/p>\n\n\n\n<p>Without required to leave Android Studio, it can assist developers create code for your applications, offering complicated code completions, responding to your inquiries,  adding code comments, and much more to help you create high-quality Android apps more quickly.<\/p>\n\n\n\n<p>For the Jellyfish edition of Android Studio, the company is launching it in more than 180 countries.<\/p>\n\n\n\n<p>It\u2019s been almost two weeks since Gemini 1.5 Pro\u2019s model was made publicly available through the Google AI Studio. But today they are looking to offer the powerful chatbot to a much wider audience through the Android Studio Application to improve coding features for Android developers.<\/p>\n\n\n\n<p>Google has been testing with Gemini in Android Studio for the last several months. They have seen several improvements in response and query processing times after they implemented their AI models in their internal testing. This just gives us an idea of how efficient Gemini can be when introduced to the Android development platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Access It?<\/strong><\/h2>\n\n\n\n<p><strong> Gemini in Android Studio is in preview mode. It is being rolled out in more than 180 countries in the Android Studio Jellyfish version of the application.<\/strong><\/p>\n\n\n\n<p>Here\u2019s how Android Developers can access it:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download <a href=\"https:\/\/developer.android.com\/studio\/preview\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/developer.android.com\/studio\/preview\" rel=\"noreferrer noopener\">Android Studio Jellyfish<\/a> or a more recent version.<\/li>\n\n\n\n<li>(Optional) Accept sending data to Google so they can learn more about the efficacy of Gemini. After installing Android Studio, go to <em>File &gt; Settings &gt; Appearance &amp; Behaviour &gt; System Settings &gt; Data Sharing<\/em> (Android Studio &gt; Settings &gt; Appearance &amp; Behaviour &gt; System Settings &gt; Data Sharing on macOS) and grant permission to share data.<\/li>\n\n\n\n<li>Open or begin an Android Studio project, then select <em>View > Tool Windows > Gemini<\/em> to open it.<\/li>\n\n\n\n<li>When prompted, log into the Google account. <\/li>\n\n\n\n<li>Use Gemini&#8217;s conversational, interactive interface once the chat window displays.<\/li>\n<\/ol>\n\n\n\n<p>Congratulations! Now enjoy its Android development capabilities. The Jellyfish model has been trained with several improvements, so developers go ahead and try the tool in the preview mode and give a review before the tool is released to stable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What&#8217;s Changing for Android Developers?<\/strong><\/h2>\n\n\n\n<p>For Android programming, Gemini in Android Studio is the new &#8216;coding buddy for developers. This will improve productivity on a whole new level.<\/p>\n\n\n\n<p><strong>With Android Studio, Gemini offers robust AI code completions, and provides recommendations for multi-line code completions, code commenting techniques, and documentation additions.<\/strong><\/p>\n\n\n\n<p>Let\u2019s look at the key features it has to offer:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1) Ask anything about Android Programming<\/strong><\/h3>\n\n\n\n<p>Gemini in Android Studio can comprehend natural language, allowing developers to ask questions about code development. They can ask any kind of inquiry in the chat window, from general inquiries to more focused issues that require assistance.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"905\" height=\"684\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-511-1-1.png\" alt=\"Ask queries to Gemini in Android Studio\" class=\"wp-image-3445\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-511-1-1.png 905w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-511-1-1-300x227.png 300w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-511-1-1-768x580.png 768w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-511-1-1-750x567.png 750w\" sizes=\"(max-width: 905px) 100vw, 905px\" \/><\/figure>\n<\/div>\n\n\n<p>It can be used to ask questions about anything from particular issues that you require assistance with to extremely basic, open-ended inquiries. Here are some samples of questions you might have, but don&#8217;t hesitate to try with any other Android development-related subjects:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>How do I add camera support to my app?<\/li>\n\n\n\n<li>Using Compose, I need a login screen with the following: a username field, a password field, a &#8216;Sign In&#8217; button, &#8216;Forgot Password?&#8217; link. I want the password field to obscure the input.<\/li>\n\n\n\n<li>What&#8217;s the best way to get the location on Android?<\/li>\n\n\n\n<li>I have an &#8216;orders&#8217; table with columns like &#8216;order_id&#8217;, &#8216;customer_id&#8217;, &#8216;product_id&#8217;, &#8216;price&#8217;, and &#8216;order_date&#8217;. Can you help me write a query that calculates the average order value per customer over the last month?<\/li>\n<\/ul>\n\n\n\n<p>Gemini in Android Studio will do its best to fetch the required information from its knowledge base so that you get the desired results. The application retains the conversation&#8217;s context, allowing you to ask follow-up questions like &#8220;Could you please provide the code for this in Kotlin?&#8221; or &#8220;Could you walk me through the process in Compose?&#8221;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2) Gemini API to create a Gen AI application<\/strong><\/h3>\n\n\n\n<p>Not only can Android Studio leverage Gemini to increase productivity, but it can also assist in utilizing the models to build AI-powered features into your applications.<\/p>\n\n\n\n<p>With the Gemini API starting template, which can be found under <em>File > New Project > Gemini API<\/em> starting in Android Studio&#8217;s canary release channel, you can get started quickly. The code sample found under <em>File > Import Sample > Google Generative AI sample<\/em> is another option for you to utilize.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"898\" height=\"575\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-512-1.png\" alt=\"Gemini API to create Generative AI application in Android Studio\" class=\"wp-image-3447\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-512-1.png 898w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-512-1-300x192.png 300w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-512-1-768x492.png 768w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/04\/Screenshot-512-1-750x480.png 750w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/figure>\n<\/div>\n\n\n<p>Since the Gemini API is multimodal, both text and image inputs are supported. Using both text and image inputs, Android Studio can facilitate conversational discussion, summarization, translation, caption creation, etc.<\/p>\n\n\n\n<p>This is what Gemini can do when integrated with an application like Android Studio. Leverages in the form of multimodal capabilities and starter templates for Gen AI applications are just a few of the benefits.<\/p>\n\n\n\n<p>Deploying and developing applications has been a bit complex with Gemini but it is easier than anything when in collaboration with Android Studio.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Safety and Privacy Concerns<\/strong><\/h2>\n\n\n\n<p>Privacy is something that Google has taken care of! Gemini is Android Studio and is only accessible when the developer logs in and enables it. Most features are not required to send the code context to use them. <\/p>\n\n\n\n<p>Developers have the option to share more context for personalized responses. This can be changed at any moment at the project level in <em>Android Studio > Settings<\/em>. <\/p>\n\n\n\n<p>The developer can also choose to exclude specific files and folders from Android Studio by using a .aiexclude file.<\/p>\n\n\n\n<p>The files that are shared with the backend servers are restricted by .aiexclude files. An array of patterns makes up a.aiexclude file, much like a.gitignore file does. The AI models never utilize files or directories that match the patterns in the.aiexclude files as context.<\/p>\n\n\n\n<p>AI functionalities within the editor, such as code completion and intention actions, are likewise deactivated in files protected by.aiexclude rules.<\/p>\n\n\n\n<p>This is a huge benefit as now Android Studio gives access to .aiexclude files which in turn safeguards your data shared with Android Studio.<\/p>\n\n\n\n<p>There are many more ways Developers can use Google&#8217;s AI models, try these amazing <a href=\"https:\/\/favtutor.com\/articles\/gemini-pro-testing-developers-feeback\/\">Gemini 1.5 Pro features<\/a>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Integrating Gemini in Android Studio is a huge step by Google towards improving Android Development using AI. A much wider variety of audience composed of Android developers will be able to get exposure to new AI capabilities and this will help them to deploy highly efficient mobile applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everything about Gemini in Android Studio, how to access it and the new features available for Android development.<\/p>\n","protected":false},"author":15,"featured_media":3525,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jnews-multi-image_gallery":[],"jnews_single_post":null,"jnews_primary_category":{"id":"","hide":""},"footnotes":""},"categories":[57],"tags":[56,169,170,64,58],"class_list":["post-3438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-ai","tag-android","tag-android-studio","tag-gemini","tag-google"],"_links":{"self":[{"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/posts\/3438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/comments?post=3438"}],"version-history":[{"count":11,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/posts\/3438\/revisions"}],"predecessor-version":[{"id":3518,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/posts\/3438\/revisions\/3518"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/media\/3525"}],"wp:attachment":[{"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/media?parent=3438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/categories?post=3438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/tags?post=3438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}