Hi!
My code use CustomDialog with panel holding some views. When I tap HOME button and then go back to application, CustomDialog vanished, but any later call of CustomDialog fires an error message:
java.lang.illegalstateexcaption: the specified child already has a parent. you must call removeView() on the child's parent first
Code is:
and panel with different views was Initialized before in this way:
So, all works fine, exept this.
What I need to do to prevent this error message ?
Thank you
My code use CustomDialog with panel holding some views. When I tap HOME button and then go back to application, CustomDialog vanished, but any later call of CustomDialog fires an error message:
java.lang.illegalstateexcaption: the specified child already has a parent. you must call removeView() on the child's parent first
Code is:
B4X:
result = MyDialog.Show( captionString, "Ок", "Cancel","", Null )
and panel with different views was Initialized before in this way:
B4X:
MyDialog.AddView( MyPanel, 0, 0, 100%x, 100%y )
So, all works fine, exept this.
What I need to do to prevent this error message ?
Thank you