Monkey support for Amazon Fire TV

Monkey Targets Forums/Android/Monkey support for Amazon Fire TV

jwl(Posted 2014) [#1]
https://developer.amazon.com/appsandservices/solutions/devices/fire-tv
https://developer.amazon.com/sdk/asb/setup.html

Immersive Entertainment and Gaming Apps

Amazon Fire TV makes it easy for your customers to take their apps and games into the living room. With powerful performance and features such as second screen and multi-controller support, Amazon Fire TV gives you a familiar Android–based platform to extend your apps and games to the big screen.

High-Performance Gaming

Amazon Fire TV has been designed around supporting HDTV and enabling powerful and immersive apps and games. It uses a Qualcomm Quad Core Snapdragon Krait 300 processor with Adreno 320 GPU and 2GB of RAM to support high performance game experiences. Fire TV also supports a variety of controllers to let you design the best experience for your customers, including a free Amazon Fire TV remote and the Amazon Fire game controller for a richer gaming experience.

Second Screen Integration

Amazon Fire TV supports second-screen experiences using DIAL, an open standard that allows customers to discover and open apps on their television right from their tablet or phone. Extending apps to two screens gives you the ability to take your apps and games to the next level – creating truly immersive gaming experiences for customers through multi-player functionality.

Multi-Player Support on Your TV

Amazon Fire TV allows up to 7 remotes and game controllers to be connected at one time. Each game controller can be associated with a player ID, opening up multi-player gaming in the living room. Games can even use different combinations of input types (remotes and game controllers) to make multi-player gaming easy for everyone.

Android Compatible

Android developers can use existing tools and frameworks to develop apps and games for Fire TV. Sample code, documentation and guidelines are available to help you make the most of your apps and games. Take an existing PC, console, or mobile app or game and optimize for the 10-foot experience, include controller support, or integrate a second screen to discover and open apps on the TV screen right from an Android device.

Integrated with Amazon Payment Services

When customers buy Fire TV devices and register with their Amazon accounts, they are already set up with their verified Amazon Payment profiles, and are ready to purchase apps or in-app items with no further effort. Amazon Fire TV supports the Amazon In-App-Purchasing API so you can offer consumable items, permanently entitled items, and even subscriptions for sale in your app.

To help you tune your gameplay and monetization implementation, Amazon offers A/B Testing and Analytics tools that can help you hone your app for maximum user retention and optimized monetization. And all of these tools work on Fire OS devices and Android devices, and most will work on iOS devices as well.


jwl(Posted 2014) [#2]
https://developer.amazon.com/sdk/asb/setup.html

Introduction

Before you can start developing apps for Amazon Fire TV, you must first set up your development environment. Setup involves installing the following software packages on your development computer:
•Java Development Kit (JDK)
•Android SDK
•Eclipse integrated development environment (IDE)
•The Amazon Fire TV SDK add-on

You will also need:
•Amazon Fire TV and the Amazon Fire TV Remote.
•A WiFi or Ethernet network to which both Amazon Fire TV and your development computer can connect.

Before you begin, review the minimum requirements for developing Android applications on the Android SDK download page.

Note: The Android SDK, Eclipse, the Java Development Kit, and certain other development tools are provided by third parties, not by Amazon. Our links for these tools will take you to third-party sites for download and installation of the tools.

--------------------------------------------------------------------------------

Installing the JDK

To use the Android SDK, your development computer must have the Java Development Kit version 6 (JDK 6) or later installed. The Java Runtime Environment (JRE) that comes with Windows is not sufficient for Android development. Find the JDK installer for your system on the Java SE Downloads page.

To verify that the JDK is available on your system, open a command prompt or terminal window and run the following command:






java -version

This command returns the JDK version number, for example java version "1.6.0_xx" for JDK 6.

Note: On Windows, you may need to change directory to the JDK bin directory before running the java -version command, because the Java binaries may not be on your system path. An example bin directory for the 32-bit JDK is <SYSTEM DRIVE>:\Program Files (x86)\Java\jdk<version>\bin.

--------------------------------------------------------------------------------

Installing the Eclipse IDE and Android SDK

If you already have Eclipse installed and want to add the Android SDK, see Setting Up an Existing IDE in the Android documentation.

To install a bundle that includes the Eclipse IDE with built-in Android Developer Tools (ADT), follow the steps to download and install the appropriate Android SDK bundle for your system. If the 64-bit JDK is installed, you need to install the 64-bit Android SDK bundle. With the 32-bit JDK, install the 32-bit Android SDK bundle.

--------------------------------------------------------------------------------

Installing the Amazon Fire TV SDK Add-on

The Amazon Fire TV SDK is an Android SDK add-on. To download and install the SDK, use these steps:
1.In Eclipse, on the Window menu, click Android SDK Manager. - or - On the command line, run the following command, where <ANDROID_SDK> is the path to your Android SDK:





<ANDROID_SDK>/tools/android

2.In the Android SDK Manager window, verify that SDK Path points to the path to your Android SDK.
To modify the path, in Eclipse, on the Window menu, click Preferences, click Android, and then update the SDK Location.
In Mac OS X, these menu items are on the ADT menu instead of the Window menu.
3.In the Android SDK Manager window, from the Tools menu, click Manage Add-on Sites.
4.In the Add-on Sites dialog box, click the User Defined Sites tab, and then click New.
5.In the Add Add-on Site URL dialog box, enter the following URL:







https://s3.amazonaws.com/android-sdk-manager/redist/addon.xml


6.Click OK and then Close. Wait for the Android SDK Manager to refresh, as indicated by the progress bar.
7.Expand Tools and click Android SDK Tools (latest version) and Android SDK Platform-tools (latest version).
8.Expand Android 4.2.2 (API 17) and click SDK Platform and Amazon Fire TV SDK Addon.
If your SDK Manager is sorted by repository, you can find the Amazon Fire TV SDK under the URL from Step 5.
If the entry for Amazon Fire TV SDK is missing, select Packages > Reload, or turn off the download cache in the options (see Troubleshooting ).
9.Expand Extras and click Android Support Library.
The Amazon Fire TV SDK samples require this library. If your SDK manager is sorted by repository you can find the Android Support Library under the Google, Inc. heading.
10.Click Install n Packages.
11.In the Choose Packages to Install dialog box, accept the license agreements for the packages, and then click Install.
12.Restart Eclipse (if you are using Eclipse).

Troubleshooting

If you have trouble downloading or seeing the Amazon Fire TV SDK in the Android SDK Manager, turn off the download cache and try again.
1.Select Tools > Options
On the Mac, select Android SDK Manager > Preferences.
2.Click Clear Cache.

3.Clear the Use download cache check box.

4.Click Close.

--------------------------------------------------------------------------------

Next Steps

To connect your development computer to Amazon Fire TV with ADB, see Connecting ADB.

To create the sample projects included with the Amazon Fire TV SDK, see Using The SDK Samples

To install and run apps you develop on Amazon Fire TV, see Installing and Running Your App.

--------------------------------------------------------------------------------


AdamRedwoods(Posted 2014) [#3]
Looks like the remote uses KEY_EVENTS so it's just key presses, this can be defined by monkey code, no need for native there.
https://developer.amazon.com/sdk/asb/remote-input.html

The game controller seems more proprietary, so it probably needs a small module.
https://developer.amazon.com/sdk/asb/input-mgmt-games.html

device discovery:
https://developer.amazon.com/sdk/asb/dial-integration.html

no signs of IAP, but it will probably use Amazon's One-click.


Beaker(Posted 2014) [#4]
It does look promising.


jwl(Posted 2014) [#5]
OUYA might be in trouble....


Sensei(Posted 2014) [#6]
I'm quite interested to see if Monkey could be adapted to utilise this with just adding a module as Adam says for the game controller.
Would be great addition to Monkey officially supported platforms :)