I'm building an application that will launch a service capable to listen to clipboard changes.
What i really want is to record (and write it in storage) every single change in the clipboard permanently, so when i launch my app i can read the stored files written by that service. This means, there's no need for direct communication between my app and the service and there's no need to use wakelocks to keep the device up (since the clipboard hardly changes while the device is asleep).
I'm using a handler to recurrently check the clipboard, I want to know how can I implement the clipboardListener to check for those changes.
FOUND IT!
I have done this, it works flawlessly afaik, and the process in memory only consumes 3mb. I'm posting this in case someone might need something similar.
If there are any errors, please point them out :D