I have an app that has a main activity and two services – the activity runs the user interface, one service is just to always show the current state of the app in the notification area and allow the user to easily re-open the app, and the other service runs as a foreground process when data needs to be sent to a host. Depending on circumstances, this second service may sometimes take a long time to complete.
Is it possible for both services to "share" the same notification object, rather than have two notifications when the second service is running? If so, what would I need to do to implement this?
I guess that I could stop the first service while the second service is running, and then restart it afterwards, but that seems a bit messy.
Is it possible for both services to "share" the same notification object, rather than have two notifications when the second service is running? If so, what would I need to do to implement this?
I guess that I could stop the first service while the second service is running, and then restart it afterwards, but that seems a bit messy.