Hi Remi,
I've implemented the ACTION_PROCESS_TEXT intent, that's really
helpful, thanks! It even works with the Aedict Reader service
disabled, and hence you can save some memory.
I'm not quite sold on the tiles idea though. Tiles API require
Android 24; however, since Android 23 you have ACTION_PROCESS_TEXT
which allows you to launch Reader easier than copying the text and
activating the tile. Yet let me hear your thoughts on this.
Best,
Martin
On 7.11.2018 15.07, Rémi NGUYEN VAN
wrote:
Hi Martin,
I guess the quick settings solution would be
similar to having a button in the notification, but it avoids
having to have a permanent notification, which takes some
space and memory for the foreground service. I'm referring to
something like this:
When the tile is tapped, you would basically
fire up an activity that reads the contents of the clipboard
and shows the translation. So users would need to copy the
text, pull down the notification shade, and tap the tile. It's
more steps, but less "false positive" translations and no need
for a foreground service. Quick settings tiles are hard to
discover (really power user-oriented, users need to customize
the notification shade), but as an optional feature it sounds
useful.
Cheers,
Rémi
Hi Remi,
thank you, that is a great tip! That is definitely a great
way to
avoid having monitoring the clipboard and having the service
around.
Please let me play with this a bit.
Regarding the settings tile - I'm not sure I get the idea,
could you
post a bit more on this please? I thought about adding a
button into the
persistent notification, but it looks to me you're not in
favor of those ;)
Best,
Martin
On 1.11.2018 5.35, Rémi NGUYEN VAN wrote:
> Hi Martin,
>
> Have you ever considered supporting
the ACTION_PROCESS_TEXT Intent
> filter on Aedict reader ? I believe this would be a good
replacement
> to avoid triggering on any copy of Japanese text.
>
> Another related idea: how about a quick settings tile
that you could
> tap to translate text that is in the clipboard ? This way
the user can
> select text and copy, and do the translation on-demand by
tapping the
> settings tile (especially on apps where the
ACTION_PROCESS_TEXT menu
> would not show on selection).
>
> Both of these solutions don't require a foreground
service I think,
> which would avoid the persistent notification. (Side
note: at least on
> P, you can long-press it to half-hide it, so it does not
show on the
> lock screen or the notification icons).
>
> Cheers,
>
> Remi