I have a aidl process through which i make connection to my server and perform login, But the problem is when i close the application i am unbinding the service in onDestroy()
callback of activity, so here my server connection gets disconnected and i need to connect every time when i launch my application (while binding service in onCreate
of activity).
I want my service to run even if user exits the application or kill the application, so that user will not require to connect to server every time launching the application and get a seamless experience.
Can i achieve this by implementing onStartCommandRecive()
in service and returning START_REDELIVER_INTENT
from callback function