I’m making a very simple rescuetime alternative with beeminder integration, but a bit nerdier and with features I want it to have.
I have no issue getting data on what I’m doing on windows or linux (in windows’ case you need 30 lines of C code to make a working keylogger ), but I have no idea how to do that in an android app.
Asking google is also not that easy, as rescuetime-like software is basically a spyware, except you’re spying on yourself
Can anyone share a minimal example of how to do this?
 The main thing apart from beeminder integration is to always keep all the raw data, as a simple sequence of json files containing batches of second-level observations, so that I can analyze it retroactively as thoroughly as I want in ways I didn’t think of before, and trivially export into whatever format I want.
One example of something trivial to code, but far from trivial to get from any existing service: I might want to beemind single-taskedness, with a single-task-violation do-less goal. Concrete example:
I section stuff into topics.
Music: reaper, melodyne, musescore, imslp
Coding: vscode, terminal, vmware, readthedocs, github
Break: youtube, twitch, twitter, facebook, discord
then each time I observe going from one to the other, that’s a single-task violation.
The idea behind this is would be that half an hour of chatting and tweeting and half an hour of coding is much, much more productive than alternating 5 minutes of each for one hour.