友盟得标题展示,假如只是title得字符串可以直接放在alert中
走的方法是:
public void setAlert(String token) throws Exception {
setPredefinedKeyValue("alert", token);
}
但是如果你想在alert中添加body和title,就需要重写方法了
public void setAlert(JSONObject token) throws Exception {
setPredefinedKeyValue("alert", token);
}
Json:org.json 包。