Exemplo n.º 1
0
  private void addBill() {
    postDate = Utilities.setDayAsTwoNumbers(postDate);
    Bill[] billArray = {
      new Bill(paymentType, postTitle, postAmount, postDate, postNotes, categoryName)
    };

    addBillTask = new APIConnect.AddBillTask(billArray);
    addBillTask.cruDelegate = this;
    addBillTask.execute();
  }
Exemplo n.º 2
0
 private void restoreBill() {
   Utilities.setAPIContext(getActivity());
   APIConnect.AddBillTask addBillTask = new APIConnect.AddBillTask(deletedBill);
   addBillTask.crdDelegate = this;
   addBillTask.execute();
 }