{"id":56,"date":"2025-03-05T06:12:58","date_gmt":"2025-03-05T06:12:58","guid":{"rendered":"https:\/\/documentation.iqonic.design\/streamit-tv\/?p=56"},"modified":"2025-06-12T10:13:07","modified_gmt":"2025-06-12T10:13:07","slug":"android-configuration","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/android-configuration\/","title":{"rendered":"Android Configuration"},"content":{"rendered":"<div class=\"nolwrap\">\n<pre class=\"wp-block-preformatted\">Estimated reading: 3 minutes<\/pre>\n\n\n\n<p>Setting up Android for your Streamit TV Project<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Open Android Module<a href=\"https:\/\/apps.iqonic.design\/documentation\/streamit-laravel-documentation\/build\/docs\/getting-started\/app\/configuration\/android#open-android-module\" target=\"_blank\" rel=\"noopener\">\u200b<\/a><\/strong><\/h2>\n\n\n\n<p>The Android module can be accessed in&nbsp;<strong>Two ways<\/strong>:<\/p>\n\n\n\n<p>1. Select the&nbsp;<strong>Android Module<\/strong>&nbsp;from the same project you&#8217;re attempting to open by going to&nbsp;<strong>File \u2192 Open<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/documentation.iqonic.design\/streamit-tv\/wp-content\/uploads\/sites\/8\/2025\/03\/android_1.png\" alt=\"\" class=\"wp-image-274\" \/><\/figure>\n\n\n\n<p>2. Navigate to&nbsp;<strong>Tools \u2192 Flutter \u2192 Android Studio \u2192 Open Android Module<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"864\" src=\"https:\/\/documentation.iqonic.design\/streamit-tv\/wp-content\/uploads\/sites\/8\/2025\/03\/android_2.png\" alt=\"\" class=\"wp-image-275\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The Application Id<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>IMPORTANT<\/strong><\/h3>\n\n\n\n<p>Every android_ app has a unique application id that looks like a Java package name, such as com.example.myapp. This id uniquely identifies your app on the device and in the google play store. Once you publish your app, you should never change the application id.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For application id, change the&nbsp;<strong>ApplicationId<\/strong>&nbsp;in the&nbsp;<strong><code>app\/build.gradle<\/code><\/strong>&nbsp;file.<\/li>\n\n\n\n<li>Locate the&nbsp;<strong><code>build.gradle<\/code><\/strong>&nbsp;file at this path:&nbsp;<strong><code>android_\/app\/build.gradle<\/code><\/strong>.<\/li>\n\n\n\n<li>This application Id will be used in firebase to setting up the firebase<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">defaultConfig {<br>    applicationId \"YOUR_PACKAGE_NAME\"<br>    minSdkVersion 21<br>    targetSdkVersion 31<br>    versionCode 1<br>    versionName \"1.0\"<br>    testInstrumentationRunner \"android_.support.test.runner.AndroidJUnitRunner\"<br>}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The Version Name<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>IMPORTANT<\/strong><\/h3>\n\n\n\n<p>The version name is a string value that represents the &#8220;friendly&#8221; version name displayed to the users. The version name is displayed to the user.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For version name, change the&nbsp;<strong><code>versionName<\/code><\/strong>&nbsp;in the&nbsp;<strong><code>build.gradle<\/code><\/strong>&nbsp;file at the app level.<\/li>\n\n\n\n<li>Locate the&nbsp;<strong><code>build.gradle<\/code><\/strong>&nbsp;file at this path:&nbsp;<strong><code>android_\/app\/build.gradle<\/code>.<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">defaultConfig {<br>    applicationId \"com.iqonic.example\"<br>    minSdkVersion 21<br>    targetSdkVersion 31<br>    versionCode 1<br>    versionName \"CHANGE_THE_VERSION_NAME\"<br>    testInstrumentationRunner \"android_.support.test.runner.AndroidJUnitRunner\"<br>}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The Version Code<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>IMPORTANT<\/strong><\/h3>\n\n\n\n<p>The version code is an incremental integer value that represents the version of the application code. The version code is used by the google play store for new updates. If you increase the version code, the update will be visible to all users.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For version code, change the&nbsp;<strong><code>versioncode<\/code><\/strong>&nbsp;in the&nbsp;<strong><code>build.gradle<\/code><\/strong>&nbsp;file at the app level.<\/li>\n\n\n\n<li>Locate the&nbsp;<strong><code>build.gradle<\/code><\/strong>&nbsp;file at this path:&nbsp;<strong><code>android_\/app\/build.gradle<\/code>.<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">defaultConfig {<br>    applicationId \"com.iqonic.example\"<br>    minSdkVersion 21<br>    targetSdkVersion 31<br>    versionCode \"CHANGE_THE_VERSION_CODE\"<br>    versionName \"1.0.0\"<br>    testInstrumentationRunner \"android_.support.test.runner.AndroidJUnitRunner\"<br>}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The App Name From Manifest File<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>IMPORTANT<\/strong><\/h3>\n\n\n\n<p>Whenever you make a project in android_ studios you give a project name, your app\u2019s name is derived from that. The user will know your app with this name on google playstore.<\/p>\n\n\n\n<p>To change the name of your android<em>&nbsp;application in android<\/em>&nbsp;studio, you have to change the value of the property android_:label defined inside the application node in AndroidManifest.xml<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;application<br>    android_:label=\"YOUR_APP_NAME\"&gt;<br>&lt;\/application&gt;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change The App Icon<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>IMPORTANT<\/strong><\/h3>\n\n\n\n<p>Android studio includes a tool called image asset studio that helps you generate your own app icons from material icons, custom images, and text strings. It generates a set of icons at the appropriate resolution for each pixel density that your app supports. Image asset studio places the newly generated icons in density-specific folders under the res\/ directory in your project. At runtime, Android uses the appropriate resource based on the screen density of the device your app is running on.<\/p>\n\n\n\n<p>Image asset studio helps you generate the following icon types:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Launcher icons<\/li>\n\n\n\n<li>Action bar<\/li>\n\n\n\n<li>tab icons<\/li>\n\n\n\n<li>Notification icon<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to&nbsp;<strong>android_\/app\/src\/main\/res<\/strong>&nbsp;then right click on the res folder and&nbsp;<strong>New \u2192 Image Asset<\/strong>&nbsp;then the dialog will open.<\/li>\n\n\n\n<li>Then Select the Image and then click on next and then finish<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Add Google JSON File<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>INFO<\/strong><\/h3>\n\n\n\n<p>As part of enabling Google APIs or Firebase services in your android_ application.&nbsp;<a href=\"https:\/\/documentation.iqonic.design\/streamit-tv-app\/configurations-customization\/firebase-configuration\">Click Here<\/a>&nbsp;to set up Firebase and download the Google JSON file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change the Google AdMob App ID in AndroidManifest.xml<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;meta-data<br>    android:name=\"com.google.android.gms.ads.APPLICATION_ID\"<br>    android:value=\"GOOGLE_ADMOB_APP_ID\" \/&gt;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Generate Signed APK<\/strong><\/h2>\n\n\n\n<p>To generate a signed apk (android_ package), follow these steps:<\/p>\n\n\n\n<p>1. Open the&nbsp;<strong>build<\/strong>&nbsp;menu and select&nbsp;<strong>generate signed bundle\/apk<\/strong>.choose&nbsp;<strong>apk<\/strong>&nbsp;and click&nbsp;<strong>next<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"864\" src=\"https:\/\/documentation.iqonic.design\/streamit-tv\/wp-content\/uploads\/sites\/8\/2025\/03\/android_3.png\" alt=\"\" class=\"wp-image-276\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/streamit-tv\/wp-content\/uploads\/sites\/8\/2025\/03\/android_4.png\" alt=\"\" class=\"wp-image-278\" \/><\/figure>\n\n\n\n<p>2. Now you will have two options create a new keystore or choose existing keystore.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/streamit-tv\/wp-content\/uploads\/sites\/8\/2025\/03\/android_5.png\" alt=\"\" class=\"wp-image-279\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you choose new keystore, a dialogue will appear in which you must specify the path of the keystore and give it a name.<\/li>\n\n\n\n<li>Then enter your password and confirm it. Select the alias name, confirm the password, and enter any additional information before clicking ok. Your key store has been created.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/streamit-tv\/wp-content\/uploads\/sites\/8\/2025\/03\/android_6.png\" alt=\"\" class=\"wp-image-280\" \/><\/figure>\n\n\n\n<p>3. Then click the next button, choose the release mode, and begin building the apk.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"768\" src=\"https:\/\/documentation.iqonic.design\/streamit-tv\/wp-content\/uploads\/sites\/8\/2025\/03\/android_7.png\" alt=\"\" class=\"wp-image-281\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>NOTE:<\/strong><\/h3>\n\n\n\n<p>To publish the app in google play store, you will need the aab(android app bundle), So to create the aab, you have to follow the same steps, just that you have to select the aab option in step 2 instead of apk<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>SUCCESSFUL !!<\/strong><\/h3>\n\n\n\n<p><strong>Great! You Have Successfully Configured Android Module!<\/strong><\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Estimated reading: 3 minutes Setting up Android for your Streamit TV Project Open Android Module\u200b The Android module can be accessed in&nbsp;Two ways: 1. Select the&nbsp;Android Module&nbsp;from the same project you&#8217;re attempting to open by going to&nbsp;File \u2192 Open. 2. Navigate to&nbsp;Tools \u2192 Flutter \u2192 Android Studio \u2192 Open Android Module. Change The Application Id [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":50,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-streamittv"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":11,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":621,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts\/56\/revisions\/621"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/posts\/50"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/streamit-tv-app\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}