Skip to content

Comments

Added new intent filter to react on content URIs to open specific ent…#2074

Merged
patrickunterwegs merged 3 commits intodevelopfrom
2073-feature-add-intent-filter-for-davx5
Nov 6, 2025
Merged

Added new intent filter to react on content URIs to open specific ent…#2074
patrickunterwegs merged 3 commits intodevelopfrom
2073-feature-add-intent-filter-for-davx5

Conversation

@patrickunterwegs
Copy link
Member

…ries

Sample call:
./adb shell am start -d "content://at.techbee.jtx?_id=2" -W at.techbee.jtx:MainActivity2

@patrickunterwegs patrickunterwegs self-assigned this Oct 17, 2025
@patrickunterwegs patrickunterwegs added the enhancement New feature or request label Oct 17, 2025
@patrickunterwegs patrickunterwegs linked an issue Oct 17, 2025 that may be closed by this pull request
@patrickunterwegs patrickunterwegs added this to the 2.14.2 milestone Oct 17, 2025
@rfc2822
Copy link
Collaborator

rfc2822 commented Oct 21, 2025

Maybe it would be better to use the usual content URI format so that [ContentUris.withAppendedId] etc can be used. This would then be

JtxContract.JtxICalObject.CONTENT_URI/<id>  =
content://at.techbee.jtx/<JtxContract.JtxICalObject.CONTENT_URI_PATH>/<id>  =
content://at.techbee.jtx/icalobject/<id>

@patrickunterwegs
Copy link
Member Author

Maybe it would be better to use the usual content URI format so that [ContentUris.withAppendedId] etc can be used. This would then be

JtxContract.JtxICalObject.CONTENT_URI/<id>  =
content://at.techbee.jtx/<JtxContract.JtxICalObject.CONTENT_URI_PATH>/<id>  =
content://at.techbee.jtx/icalobject/<id>

Sure, I'll update the code now.

@patrickunterwegs
Copy link
Member Author

@rfc2822 , I have added constants for the intent view content uri to the contract. Additionally I have added a convenience function to build the right content uri with the iCalObjectId as last path segment. I created to pull request for sync tools here:
bitfireAT/synctools#110

If you're okay with that, I'll merge the jtx Board code.

The line to call the intent would now be:
./adb shell am start -d "content://at.techbee.jtx/icalobject/2" -W at.techbee.jtx:MainActivity2

@patrickunterwegs patrickunterwegs merged commit 32b0e05 into develop Nov 6, 2025
1 check passed
@patrickunterwegs patrickunterwegs deleted the 2073-feature-add-intent-filter-for-davx5 branch November 6, 2025 11:56
@patrickunterwegs patrickunterwegs modified the milestones: 2.14.2, 2.15.0 Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add intent filter for DAVx5

2 participants