Voice-Recorder icon indicating copy to clipboard operation
Voice-Recorder copied to clipboard

Add tile action

Open schneidr opened this issue 4 months ago • 3 comments

Type of change(s)

  • [ ] Bug fix
  • [x] Feature / enhancement
  • [ ] Infrastructure / tooling (CI, build, deps, tests)
  • [ ] Documentation

What changed and why

Basic implementation of a TileService to start a recording.

Closes the following issue(s)

  • Closes #20

Checklist

  • [x] I read the contribution guidelines.
  • [x] I manually tested my changes on device/emulator (if applicable).
  • [ ] I updated the "Unreleased" section in CHANGELOG.md (if applicable).
  • [x] All checks are passing.

schneidr avatar Jul 16 '25 18:07 schneidr

First, this is incomplete. The tile is there, I can use it to start a background recording, but I'm having a little trouble controlling it properly. Tipping the tile again stops the recording, and I get a toast that it has been saved successfully, but when I look at the application it still shows the recording screen in a paused state. I am unable to figure out how to stop the recording properly. Could you give me a hint on how to implement this?

schneidr avatar Jul 16 '25 18:07 schneidr

Assuming it's just a UI state issue, you'll need to need to notify the recording fragment when recording is stopped from the tile.

(See how recorder service posts events using event bus. I am not at my computer now but I hope this is enough. I can provide more info later)

naveensingh avatar Jul 16 '25 18:07 naveensingh

That actually was already helpful. It's still not working quite perfect, my main issue now is that nothing is recorded when the screen is locked. The main purpose of the tile for me is to be able to make a quick recording without having to unlock the phone and start an app.

I found some permissions that seems to be needed (WAKE_LOCK, RECORD_AUDIO was mentioned) but as far as I can see the app already has all those.

Any further thoughts?

schneidr avatar Jul 17 '25 17:07 schneidr