I am creating an app where I have 3 screens - Restaurant, Menu and Table in order. I need to push the restaurant ID generated in screen 1(Restaurant) to both screen 2(Menu) and screen 3 (Table). I am successfully able to push the restaurant ID to the menu screen but not able to do so to the table screen.
Intent intent = new Intent(getApplicationContext(), MenuActivity.class);
intent.putExtra(RESTAURANT_ID, restaurant.getRestaurantID());
startActivity(intent);
When I'm trying to push the restaurant ID to the table screen, a node is being created as 'restaurantID' not the unique auto-generated restaurantID.