In some situation, we should change the screen and widgets depending on hardware signal for handling some service easily. I try to new the widget the class of which is contained in project but it fails during construction. Is there any examples for me to benchmark?