When using a broadcast receiver to load an xml layout on screen (when an event happens). Sometimes the xml is not displayed, despite the fact the receiver catches the event.
Is there a check i can perform to see if a specific xml layout is displayed on screen atm?
To me your question reads like you want a getContentView() method, which Activity unfortunately doesn't have. Two alternative solutions to this problem can be found in these questions:
Why isnt there a getcontentview method for activity?
Is there any method getContentView like setContentview?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With