Get data from service android -


my app start service (and bound activity) in oncreate method. when mainactivity start load fragments. need data service initialize content of fragments when fragments load mainactivity.

the problem is, service reference null in oncreate , cant data service when app load.

any suggestion helps me. thanks!

make handler in service . after service had loaded data need . send message activity or fragment , refresh .


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -