FAQ

如何通过IP控制启动Android应用

您可以启动响应中列出的应用程序 getApplicationList by calling setActiveApp.
For example, when you want to launch YouTube, you can find the correct uri parameter with getApplicationList.
Here is just an example of part of a response.

  "title": "YouTube",
  "uri": "com.sony.dtv.com.google.android.youtube.tv.com.google.android.apps.youtube.tv.activity.TvGuideActivity",
  "icon": "http://example.com"

然后,您可以将uri参数放入 setActiveApp. 下面是一个请求JSON的例子。

{
  "method": "setActiveApp",
  "id": 601,
  "params": [{
    "data": "",
    "uri": "com.sony.dtv.com.google.android.youtube.tv.com.google.android.apps.youtube.tv.activity.TvGuideActivity"
  }],
  "version": "1.0"
}