Skip to content

Share-target trigger: route ACTION_SEND into tasks with filters #9

Description

@SysAdminDoc

The trigger I want next: register OpenTasker as a share target, so anything shared from any app (text, URL, file) can route into a task of your choice with filters.

Why this one is worth building: it's a high-value everyday primitive that uses a bog-standard intent filter and needs no special permissions. Share a URL from your browser to a "read later" task. Share an image to a task that renames and files it. Share text to a note-append task. Every automation app that has this, people end up using it daily.

Rough shape of the work:

  • ACTION_SEND and ACTION_SEND_MULTIPLE intent filters in the manifest
  • A lightweight share-receiver activity that hands off and finishes
  • An event=share context with MIME and text filters, so profiles can match on what got shared
  • Sanitize the extras before they reach task variables, shared content is untrusted input
  • Tests around the filter matching

I'll get to this eventually, but it's self-contained enough that someone else could land it first, and I'd be glad if they did. If you want it, comment here and I'll answer design questions as they come up. Fair warning that reviews on a trigger touching untrusted input will be picky, take that as respect for the feature, not for ceremony.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention or outside expertise welcome

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions