I am developing a automation testing application for Android. My requirement is even when my application is not running in the foreground, there should be a process/service which should run in background continuously monitoring and uploading logs to an FTP server.
How can I achieve such processing? Also, how can I start that service automatically when device reboots?
Its like WhatsApp. Even when WhatsApp is not running in foreground (when device reboots) its service continuously monitors for incoming messages.
Please help. Your knowledge is highly appreciated !!!