{"id":35514,"date":"2016-06-24T14:55:33","date_gmt":"2016-06-24T09:25:33","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=35514"},"modified":"2016-06-24T15:21:30","modified_gmt":"2016-06-24T09:51:30","slug":"amazon-tv-introduction-and-configuration-for-development","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/amazon-tv-introduction-and-configuration-for-development\/","title":{"rendered":"Amazon TV Introduction and Configuration for Development"},"content":{"rendered":"<p style=\"text-align: left;\"><strong>Introduction<\/strong><\/p>\n<p>Amazon Fire TV, developed and released by AMAZON in April 12, 2014<strong>.<\/strong>\u00a0it&#8217;s a powerful streaming media device\u00a0which helps to enable app and game developers to reach more customers in the living room.<\/p>\n<p style=\"text-align: left;\"><strong>Availability<\/strong><\/p>\n<p>The new Amazon Fire TV is mainly available to customers in US, UK, Germany, and Japan.<\/p>\n<p style=\"text-align: left;\"><strong>Specifications<\/strong><\/p>\n<p style=\"text-align: left;\">Amazon Fire TV has following specification &#8211;<\/p>\n<ol>\n<li style=\"text-align: left;\">5x the processing power of the latest generation Roku.<\/li>\n<li style=\"text-align: left;\">8x the processing power of Chromecast.<\/li>\n<li style=\"text-align: left;\">MediaTek 64-t Quad-core processor.<\/li>\n<li style=\"text-align: left;\">8 GB of on-device memory.<\/li>\n<li style=\"text-align: left;\">Add up to 128 GB of additional storage via microSD card slot.<\/li>\n<li style=\"text-align: left;\">Dedicated GPU and Dolby Digital Plus surround sound.<\/li>\n<li style=\"text-align: left;\">The new Amazon Fire TV is 75% more powerful with Wi-Fi.<\/li>\n<li style=\"text-align: left;\">Support Alexa and 4K Ultra HD.<\/li>\n<li style=\"text-align: left;\">Contains some feature like<strong> Parental control<\/strong>,\u00a0<strong>Mirroring<\/strong>\u00a0.<\/li>\n<\/ol>\n<p style=\"text-align: left;\"><strong>Ways to build the application for Fire tv \u00a0<\/strong><\/p>\n<p>There are two ways to build the application.<\/p>\n<ol>\n<li>Android<\/li>\n<li>HTML5 (HTML5 web apps, Cordova apps).<\/li>\n<\/ol>\n<p style=\"text-align: left;\"><strong> Getting Started Amazon Fire TV Apps developement using Android <\/strong><\/p>\n<p><strong>Supports &#8211; <\/strong><\/p>\n<ul>\n<li>Android 5.0 APIs(Lollipop).<\/li>\n<li>Android 5.0 Behavior Changes.<\/li>\n<li>V17 Leanback Library .<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline;\"><strong><em>Setting Up Your Development Environment<br \/>\n<\/em><\/strong><\/span><br \/>\nTo start developing apps for the Amazon Fire TV platform, you need to first set up your development environment.<\/p>\n<ol>\n<li>You must have the Java SE Development Kit 8 or later on your computer so\u00a0<a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk8-downloads-2133151.html\"> Install the Java Development Kit (JDK).<\/a><\/li>\n<li><a href=\"https:\/\/developer.android.com\/studio\/install.html\">Install Android Studio<\/a>\u00a0and\u00a0<a href=\"https:\/\/developer.android.com\/studio\/index.html\">Set Up Android Studio\u00a0<\/a>.<\/li>\n<li>Connecting Fire TV Through \u00a0Android Debug Bridge (ADB).<\/li>\n<\/ol>\n<p><em><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span style=\"text-decoration: underline;\">Set Up Android Debug Bridge<\/span><\/strong><\/em><\/p>\n<p style=\"padding-left: 30px;\">Android Debug Bridge (ADB) is a command-line utility for running and managing Android apps on your device or emulator. ADB is available when you install Android Studio but for Windows users need to <a href=\"https:\/\/s3.amazonaws.com\/android-sdk-manager\/redist\/fire_devices_usb_driver.zip\">install a special USB driver<\/a>\u00a0to set up the ABD.<\/p>\n<p style=\"padding-left: 30px;\"><em><strong><span style=\"text-decoration: underline;\">Add Android Debug Bridge to Your Path<\/span><\/strong><\/em><\/p>\n<p style=\"padding-left: 30px;\">You need to add ADB to your PATH so you can more easily execute adb commands.<span style=\"color: #000000;\">Copy the full path of ADB form &lt;Android SDK&gt;\/platform-tools<\/span><\/p>\n<p style=\"padding-left: 30px;\"><strong>For Linux<span style=\"line-height: 1.71429; font-size: 1rem;\">\u00a0:<\/span><\/strong><\/p>\n<ol>\n<li><span style=\"line-height: 1.71429; font-size: 1rem;\">Either go to the adb location and run .\/adb in terminal or simply <span style=\"color: #3366ff;\">\u00a0<\/span><span style=\"color: #339966;\"><span style=\"color: #3366ff;\">sudo apt-get install<\/span> <span style=\"color: #3366ff;\">android-tools-adb<\/span><\/span> run this commond\u00a0<\/span><\/li>\n<\/ol>\n<p style=\"padding-left: 30px;\"><strong>For Mac OSX:<\/strong><\/p>\n<ol>\n<li><span style=\"line-height: 1.71429; font-size: 1rem;\">Add the path to your .bash_profile with the following command, replacing \/Users\/&lt;your username&gt;\/Library\/Android\/sdk\/platform-tools\/ with your path to platform-tools.<\/span><\/li>\n<\/ol>\n<ol>\n<li>\n<pre><span style=\"color: #3366ff;\">echo 'export PATH=$PATH:\/Users\/&lt;your username&gt;\/Library\/Android\/sdk\/platform-tools\/' &gt;&gt; ~\/.bash_profile<\/span><\/pre>\n<\/li>\n<li>Restart your terminal session.<\/li>\n<\/ol>\n<p><span style=\"color: #ff0000;\">\u00a0 \u00a0 \u00a0 \u00a0(In case If you don\u2019t have a .bash_profile file in your user directory, so first create this one.)<\/span><\/p>\n<p style=\"padding-left: 30px;\"><strong>For Windows:<\/strong><\/p>\n<ol>\n<li>Click start and type view advanced system settings in the search box.<\/li>\n<li>Click view advanced system settings.<\/li>\n<li>When the system settings dialog opens, click the Environment Variables button.<\/li>\n<li>Under system variables (the lower pane), select Path and click Edit.<\/li>\n<li>On Windows 7 or 8, move your cursor to the farthest position on the right, type ; and then press Ctrl+V to insert the path to your SDK that you copied earlier. It may look like this: ;C:\\Users\\&lt;your user name&gt;\\AppData\\Local\\Android\\Sdk\\platform-tools. Click OK on each of the three open dialog boxes to close them.<\/li>\n<li>On Windows 10, click the New button and add this location.<\/li>\n<li>Restart any terminal sessions, and then type adb. If you successfully added ADB to your path, you will see ADB help info rather than \u201ccommand not found.\u201d<\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><em><strong>Enable Debugging on Amazon Fire TV<\/strong><\/em><\/span><\/p>\n<p>You must enable both ADB and debugging on the Fire TV device before you can connect to it.<\/p>\n<ol>\n<li>From the main screen of your Fire TV, select Settings.<\/li>\n<li>Select System &gt; Developer Options.<\/li>\n<li>Select ADB Debugging.<\/li>\n<\/ol>\n<div id=\"attachment_35556\" style=\"width: 730px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-35556\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-35556\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/ADB1.png\" alt=\"ADB\" width=\"720\" height=\"405\" \/><p id=\"caption-attachment-35556\" class=\"wp-caption-text\">Enable ADB<\/p><\/div>\n<p><span style=\"text-decoration: underline;\"><em><strong>Connect ADB Through the Network<\/strong><\/em><\/span><\/p>\n<ol>\n<li>From the Fire TV home screen, select Settings.<\/li>\n<li>Go to System &gt; About &gt; Network. Make note of the IP address listed on this screen.\n<p><div id=\"attachment_35557\" style=\"width: 730px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-35557\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-35557\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/IpAddress.png\" alt=\"Get the IP of Fire TV\" width=\"720\" height=\"405\" \/><p id=\"caption-attachment-35557\" class=\"wp-caption-text\">Get the IP of Fire TV<\/p><\/div><\/li>\n<li>Open a terminal window.<\/li>\n<li>Make sure your Fire TV device and your computer are on the same network. You can use either a wifi network or a wired network.<\/li>\n<li>Run the following commands,<\/li>\n<\/ol>\n<pre><span style=\"color: #3366ff;\"> adb kill-server<\/span>\r\n<span style=\"color: #3366ff;\"> adb start-server<\/span>\r\n<span style=\"color: #3366ff;\"> adb connect &lt;ipaddress&gt;<\/span> \r\n<span style=\"color: #ff0000;\"> NOTE- &lt;ipaddress&gt; is the IP address of Fire TV device noted in the 2nd step.\r\n<span style=\"color: #000000;\"> If the connection was successful, ADB responds with the message:<\/span>\r\n<span style=\"color: #000000;\"><span style=\"color: #3366ff;\"> connected to ipaddress :5555<\/span>\r\n Verify that the Fire TV device appears in the list of devices:\r\n<span style=\"color: #3366ff;\"> adb devices<\/span>\r\n ADB responds with the message:\r\n List of devices attached\r\n<span style=\"color: #3366ff;\"> ipaddress:5555 device<\/span><\/span>\r\n<\/span><\/pre>\n<p>&nbsp;<\/p>\n<div id=\"attachment_35555\" style=\"width: 746px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-35555\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-35555 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/ADB.png\" alt=\"ADB\" width=\"736\" height=\"207\" \/><p id=\"caption-attachment-35555\" class=\"wp-caption-text\">commands to connect the Amazon Fire TV<\/p><\/div>\n<p><span style=\"text-decoration: underline;\"><em><strong>Installing Your App<\/strong><\/em><\/span><\/p>\n<ol>\n<li>When you run adb connect command you are able to see you fire device in your Andorid Studio you can select the device and install\u00a0the application to your fire tv directly.\n<p><div id=\"attachment_35565\" style=\"width: 628px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-35565\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-35565 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/rsz_1screenshot_from_2016-06-13_12-54-06.png\" alt=\"rsz_1screenshot_from_2016-06-13_12-54-06\" width=\"618\" height=\"514\" \/><p id=\"caption-attachment-35565\" class=\"wp-caption-text\">Install the Application by Android Studio<\/p><\/div><\/li>\n<li>To install the application run\n<pre><span style=\"color: #3366ff;\"> adb install &lt;path-to-apk-file&gt;<\/span><\/pre>\n<div id=\"attachment_36529\" style=\"width: 513px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-36529\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-36529 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/rsz_rsz_install.png\" alt=\"install\" width=\"503\" height=\"149\" \/><p id=\"caption-attachment-36529\" class=\"wp-caption-text\">Install the Application by ADB command<\/p><\/div>\n<p>&nbsp;<\/li>\n<li>To re-install an app that already exists on the device, you can use the -r option to reinstall the app:\n<pre><span style=\"color: #3366ff;\"> adb install -r &lt;path-to-apk-file&gt;<\/span><\/pre>\n<\/li>\n<li>You can also install the application using Usb.<\/li>\n<\/ol>\n<ul>\n<li>From Fire TV\u2019s main screen, select Settings &gt; System.<\/li>\n<li>Select system\u00a0&gt; Developer Options<\/li>\n<li>Select Developer Options \u00a0&gt; Turn off the USB debugging\n<p><div id=\"attachment_35573\" style=\"width: 730px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-35573\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-35573\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/device-2016-06-13-165839.png\" alt=\"device-2016-06-13-165839\" width=\"720\" height=\"405\" \/><p id=\"caption-attachment-35573\" class=\"wp-caption-text\">Turn off the USB debugging to mount the USB<\/p><\/div><\/li>\n<li>Install any File explore application and access the location of your application on Usb and click to install.\n<p><div id=\"attachment_35574\" style=\"width: 730px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-35574\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-35574\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/device-2016-06-13-165750.png\" alt=\"Click apk to install the application\" width=\"720\" height=\"405\" \/><p id=\"caption-attachment-35574\" class=\"wp-caption-text\">Click .apk to install the application<\/p><\/div><\/li>\n<\/ul>\n<p><em><strong>Running Your App<\/strong><\/em><\/p>\n<ol>\n<li>Go to the Apps section in your fire tv and select the app to run in Fire tv.<\/li>\n<li>Using Command line use following command to run the application &#8211;\n<pre><span style=\"color: #3366ff;\"> adb shell am start -n packageName\/.LauncherActivity<\/span><\/pre>\n<p><em>ex &#8211; adb shell am start -n com.ttn.tv\/.SplashActivity<\/em><\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><em><strong>Uninstalling Your App<\/strong><\/em><\/span><\/p>\n<p>1.To uninstall your app from Amazon Fire TV on the device itself:<\/p>\n<ul>\n<li>From Fire TV\u2019s main screen, select Settings &gt; Applications.<\/li>\n<li>Select\u00a0Managed Installed Application &gt; Select your app.<\/li>\n<li>Select Uninstall &gt; Uninstall.<\/li>\n<\/ul>\n<div id=\"attachment_35558\" style=\"width: 730px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-35558\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-35558\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/Uninstall2.png\" alt=\"Uninstall the Application from Manage Installed Application\" width=\"720\" height=\"405\" \/><p id=\"caption-attachment-35558\" class=\"wp-caption-text\">Uninstall the Application from Manage Installed Application<\/p><\/div>\n<p>or<\/p>\n<ul>\n<li>From Fire TV\u2019s main screen, select Apps\u00a0&gt; Go to Your App Library.<\/li>\n<li>Select your app &gt; Select Uninstall &gt; Uninstall.<\/li>\n<\/ul>\n<div id=\"attachment_35559\" style=\"width: 730px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-35559\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-35559\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/uninstall1.png\" alt=\"Uninstall the Application from Apps Library\" width=\"720\" height=\"405\" \/><p id=\"caption-attachment-35559\" class=\"wp-caption-text\">Uninstall the Application from Apps Library<\/p><\/div>\n<p>3.To uninstall your app from Amazon Fire TV by Command Line:<\/p>\n<pre><span style=\"color: #3366ff;\"> adb uninstall packageName <\/span>\r\n<span style=\"color: #3366ff;\"> ex - adb uninstall com.ttn.tv<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Amazon Fire TV, developed and released by AMAZON in April 12, 2014.\u00a0it&#8217;s a powerful streaming media device\u00a0which helps to enable app and game developers to reach more customers in the living room. Availability The new Amazon Fire TV is mainly available to customers in US, UK, Germany, and Japan. Specifications Amazon Fire TV has [&hellip;]<\/p>\n","protected":false},"author":864,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":4},"categories":[3479,3477],"tags":[3478,3606,3605,4861],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/35514"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/864"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=35514"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/35514\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=35514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=35514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=35514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}