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(); }
private void restoreBill() { Utilities.setAPIContext(getActivity()); APIConnect.AddBillTask addBillTask = new APIConnect.AddBillTask(deletedBill); addBillTask.crdDelegate = this; addBillTask.execute(); }