Making AndroidTV app workable on FireTV

拟墨画扇 提交于 2019-12-04 08:49:00
  1. Recommendations

No, Fire TV does not support recommendations, IIRC.

  1. Global search

Same as the previous point.

  1. In app search

Yes, you can use the SearchFragment class. However (not sure about the recent versions of Leanback), there are a few quirks due to how the mic input is handled. One of the things that were to be done is disabling the speech recognizer:

Field mSpeechRecognizerField = SearchFragment.class.getDeclaredField("mSpeechRecognizer");
mSpeechRecognizerField.setAccessible(true);
mSpeechRecognizerField.set(this, null);

You may encounter one or two more.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!