I have an app with three services:
1. Starter - just initializes
2. Samsung Health monitor - watches the steps, calories etc. (If SHealth is installed)
3. TCP/IP communicator that reports status to a cloud/local server
On an Asus 10 inch tablet, OS version 4.4.2 or even on newer ones, the Starter service starts; the MAIN creates and resumes, where the SHealth service is started ONLY if SHealth is installed (which it is not); then regardless of anything, the TCP/IP service is started.
Strangely, only the SHealth service runs (after the Starter and MAIN); the TCP/IP service will only start during a fresh compile. The TCP/IP service is START AT BOOT as is the Starter Service, the SHealth is not set to start at boot, but even though it is NOT called via a StartService, StartServiceAt etc., it runs and the TCP service does not run.
Is it ok to have three services in the same program? Should the all, some or none be set to Start at boot?
Even though the SHealth service isn't supposed to run, it does and when I start the TCP service from within the SHealth service, it says it starts but the first line in the start code is a LOG and that log doesn't appear.
Additionally, when the tablet is powered down and back up, the Starter starts, the SHealth starts (and shouldn't) and the TCP/IP service says it starts but the log message does not appear.
Any ideas on this will be appreciated.
Regards,
Rusty
1. Starter - just initializes
2. Samsung Health monitor - watches the steps, calories etc. (If SHealth is installed)
3. TCP/IP communicator that reports status to a cloud/local server
On an Asus 10 inch tablet, OS version 4.4.2 or even on newer ones, the Starter service starts; the MAIN creates and resumes, where the SHealth service is started ONLY if SHealth is installed (which it is not); then regardless of anything, the TCP/IP service is started.
Strangely, only the SHealth service runs (after the Starter and MAIN); the TCP/IP service will only start during a fresh compile. The TCP/IP service is START AT BOOT as is the Starter Service, the SHealth is not set to start at boot, but even though it is NOT called via a StartService, StartServiceAt etc., it runs and the TCP service does not run.
Is it ok to have three services in the same program? Should the all, some or none be set to Start at boot?
Even though the SHealth service isn't supposed to run, it does and when I start the TCP service from within the SHealth service, it says it starts but the first line in the start code is a LOG and that log doesn't appear.
Additionally, when the tablet is powered down and back up, the Starter starts, the SHealth starts (and shouldn't) and the TCP/IP service says it starts but the log message does not appear.
Any ideas on this will be appreciated.
Regards,
Rusty
Last edited: