use of com.connectsdk.core.AppInfo in project butter-android by butterproject.
the class DIALService method launchNetflix.
@Override
public void launchNetflix(final String contentId, AppLaunchListener listener) {
JSONObject params = null;
if (contentId != null && contentId.length() > 0) {
try {
new JSONObject() {
{
put("v", contentId);
}
};
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
AppInfo appInfo = new AppInfo("Netflix");
appInfo.setName(appInfo.getId());
launchAppWithInfo(appInfo, params, listener);
}
use of com.connectsdk.core.AppInfo in project butter-android by butterproject.
the class DIALService method launchApp.
private void launchApp(String appId, JSONObject params, AppLaunchListener listener) {
if (appId == null || appId.length() == 0) {
Util.postError(listener, new ServiceCommandError(0, "Must pass a valid appId", null));
return;
}
AppInfo appInfo = new AppInfo();
appInfo.setName(appId);
appInfo.setId(appId);
launchAppWithInfo(appInfo, listener);
}
Aggregations