question

sreekant avatar image
sreekant asked David Marginian Deactivated answered

Replacement of deprecated method getItemsWithCategories() of class InventoryConnector.

Hi

I have used below method in our clover project to get Item list with category.
inventoryConnector().itemsWithCategories

Now it is deprecated and throwing error: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died.

Kindly share how we can overcome this situation.

@Deprecated
public List<Item> getItemsWithCategories() throws ClientException, ServiceException, BindingException, RemoteException {
  return execute(new ServiceCallable<IInventoryService, List<Item>>() {
    public List<Item> call(IInventoryService service, ResultStatus status) throws RemoteException {
      return service.getItemsWithCategories(status);
    }
  });
}
Inventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered

A deprecated method call shouldn't be failing. If you want to replace the deprecated method though please see the API docs for that method:

 /**
   * See {@link IInventoryService#getItemsWithCategories(ResultStatus)}
   * @deprecated
   */


10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community