Issue
Slam .
I am trying to show view inside alertDialog, every thing goes fine and the view popup without any problem, but when i click show view again the application crash and bring this error
Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
Solution
Slam again the error was in showing the same view again, i solve it by creating new alertDian everytime i click show view
customerDetails = new AlertDialog.Builder(OrderDetails.this);
LayoutInflater inflater = getLayoutInflater();
convertView = (View) inflater.inflate(R.layout.customer_details, null);
Answered By - Tgy Aldeen Abdo
Answer Checked By - Marilyn (JavaFixing Volunteer)