
# 设置霸屏应用包名
#### 应用场景
该接口可设置当前大屏显示的应用。
#### 前提条件
已完成登录认证，参考[登录认证](https://support.huaweicloud.com/ideahub-api/ideahub_05_0013.html#ZH-CN_TOPIC_0000001309671840)。
#### 接口概述
本接口可以设置显示的应用，接口详情请参考[设置霸屏应用包名](https://support.huaweicloud.com/ideahub-api/ideahub_05_0306.html#ZH-CN_TOPIC_0000001388614853)
#### 请求URL
/action.cgi?ActionID=WEB_SetSingleAppAPI
```
private static void WEB_SetSingleAppAPI() {
        String uri = baseUrl + "/action.cgi?ActionID=WEB_SetSingleAppAPI";
        JSONObject itemInt = new JSONObject();
        itemInt.put("CfgItemID","packageName");
        itemInt.put("CfgItemInfo",pkgName);
        JSONArray itemIntArray = new JSONArray();
        itemIntArray.add(itemInte);
        JSONArray itemStrArray = new JSONArray();
        JSONObject obj = new JSONObject(); 
        obj.put("CfgItemInt", itemIntArray);
        obj.pub("CfgItemString", itemStrArray);
        obj.put("acCSRFToken", token);
        JSONObject result = HttpClientUtil.post(uri, obj, null);
   }
```
#### token的值为上述login操作获取的值，霸屏应用设置成功返回报文
{"success":1,"data":""}
