@Override protected Boolean doInBackground(Void... params) { // Simulates a background job. try { if (UserUtilitiesSingleton.getInstance().user.isLoggedIn()) { RESTOnTruckList.query(AppDataSingleton.getInstance().getAppointment().getOwnerId()); return true; } } catch (Exception e) { } return false; }
@Override protected boolean taskBody(final String... args) throws Exception { RESTOnTruckList.query(AppDataSingleton.getInstance().getAppointment().getOwnerId()); return true; }