How can i create/bind a service only after activity layout is rendered?
-- Update
I have two tabs (both as separate activities)on the main activity and the data used for tabs comes from Service. Right now i'm binding service inside onCreate
method. Issue is that layout is not rendered till all the statements inside the onCreate
gets finished. A blank screen is shown till the service get bind
See ViewTreeObserver
More info here: https://stackoverflow.com/a/7735122/338479
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