I'm trying to create an order with a client associated with opening the registry application.
My code sometimes it works and sometimes it does not.
The steps I follow are:
- Once I have the client, I create the order and assign the client to it:
Order order = orderConnector.createOrder(new Order()); order.setCustomers(Collections.singletonList(customer)); order = orderConnector.updateOrder(order);
- Then I launch the registry application with these data:
Intent intent = new Intent(Intents.ACTION_START_REGISTER); intent.putExtra(Intents.EXTRA_ORDER_ID, order.getId()); startActivity(intent);
I'm testing with the emulator, with Android 7,
What am I doing wrong?
There is the possibility of opening the registry without creating an order, but if you create one that is associated with a client?