Exemplo n.º 1
0
  public void show(BaseActivity activity) {
    if (0 == agents.length()) {
      return;
    }
    form = new Forms(R.string.send_sms, this, true);
    if (null == phones) {
      form.addTextField(PHONE, R.string.phone, "");

    } else {
      form.addSelector(PHONE, "phone", phones.replace(',', '|'), 0);
    }

    if (0 < agents.indexOf('|')) {
      form.addSelector(AGENT, R.string.send_via, agents, 0);
    } else {
      form.addString(R.string.send_via, agents);
    }
    form.addTextField(TEXT, R.string.message, " ");
    form.show(activity);
  }
Exemplo n.º 2
0
 public void addString(String text) {
   addString(text, null);
 }