This chapter is from the book
- What method must be implemented in an onKeyListener?
- What interface includes the onConnected method?
- What does fling mean when using the Anymote protocol?
- How does the remote app start an Activity on the TV?
- The onKey method must be implemented. That method accepts the keyCode and KeyEvent, so entered keystrokes can be detected.
- ClientListeners must implement three methods, including onConnected. The others are onDisconnected and onConnectionFailed.
- Fling refers to sending an Intent from the remote to the TV. The app can fling a URL to be displayed on the Chrome browser. The Intent is to view the URL.
- The remote app starts an Activity on the TV by creating an Intent on the remote that refers to the Activity on the TV. The remote app then flings that Intent to the TV using the sendIntent method. For example: