I want to periodically fetch data from server and put in database without opening the app so I want my service always open with or without activity knows about it.
So I want to keep my service always open. This means I want my service not bounded by activity but right now when I long press and exit from app, the service stops.
Can somebody knows how to solve it. Thanks Many apps like WhatsApp Facebook do it. Even though we long press and swapped out the app, the service and process still not closed. I want similar functionality