When I call an object of the below class my text view is set to "Not Found". I have also set all merchant permissions for my app in the sandbox account to read and write. Please can anyone help?
private class InventoryAsyncTask extends AsyncTask<Void, Void, Item> { @Override protected final Item doInBackground(Void... params) { try { //Get inventory item Item tmp = mInventoryConnector.getItems().get(0); Log.d("Item Value : ", tmp.getName()); return tmp; } catch (RemoteException | ClientException | ServiceException | BindingException e) { e.printStackTrace(); } return null; } @Override protected final void onPostExecute(Item item) { if (item != null) { mTextView.setText(item.getName()); } else{ mTextView.setText("Not Found"); } } }