Exemplo n.º 1
0
 @Override
 public void onShow(DialogInterface dialog) {
   accbank.setText("");
   accamount.setText("");
   accname.setText("");
   accnumber.setText("");
   this.dialog.getButton(DialogInterface.BUTTON_POSITIVE).setOnClickListener(this);
 }
Exemplo n.º 2
0
 @Override
 public void onClick(View v) {
   if (accbank.getText().length() == 0) return;
   if (accamount.getText().length() == 0) return;
   if (accname.getText().length() == 0) return;
   if (accnumber.getText().length() == 0) return;
   HashMap<String, Object> pars = new HashMap<String, Object>();
   pars.put("loginkey", Shared.loginkey);
   pars.put("bank", accbank.getText());
   pars.put("amount", accamount.getText());
   pars.put("name", accname.getText());
   pars.put("number", accnumber.getText());
   request = SimpleHttp.request("request", Shared.url + "profile/requestPayment", pars, this);
   Button buttonok = dialog.getButton(DialogInterface.BUTTON_POSITIVE);
   buttonok.setText("Please wait...");
   buttonok.setEnabled(false);
   dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setVisibility(View.GONE);
 }