Skip to content

Feature/share intent support 13723853070791812408#11

Merged
DivyanshuChipa merged 4 commits intomasterfrom
feature/share-intent-support-13723853070791812408
Jan 31, 2026
Merged

Feature/share intent support 13723853070791812408#11
DivyanshuChipa merged 4 commits intomasterfrom
feature/share-intent-support-13723853070791812408

Conversation

@DivyanshuChipa
Copy link
Copy Markdown
Owner

sharescreen do manually added

google-labs-jules bot and others added 4 commits January 30, 2026 06:17
- Added ACTION_SEND intent filter to AndroidManifest.xml
- Implemented ShareScreen for recipient selection and photo preview
- Updated MainActivity to handle incoming share intents and navigate to ShareScreen
- Integrated with ChatViewModel for file upload and navigation to chat after sending
- Added version-aware Uri retrieval for Android 13+ compatibility

Co-authored-by: DivyanshuChipa <211708943+DivyanshuChipa@users.noreply.github.com>
- Added ACTION_SEND intent filter for photos.
- Implemented ShareScreen with photo preview and recipient selection.
- Fixed ForegroundServiceStartNotAllowedException by:
  - Moving service start to LaunchedEffect in MainActivity.
  - Adding try-catch around startForeground in IntraBackgroundService.
  - Adding 'specialUse' service type with required manifest property for Android 14+.
- Ensured Share Intent works for both Cold Start and warm start.
- Standardized version-aware Uri retrieval.

Co-authored-by: DivyanshuChipa <211708943+DivyanshuChipa@users.noreply.github.com>
- Expanded Share Intent support to include video/*, application/*, and text/plain (YouTube links).
- Updated ShareScreen with context-specific previews (video icon, document icon, text link preview).
- Improved MainActivity logic to handle multiple share types and send them correctly.
- Fixed ForegroundServiceStartNotAllowedException crash by ensuring service starts only when activity is in foreground.
- Added Android 14+ foreground service stability updates.
- Ensured compatibility for older devices like J2 (2015).

Co-authored-by: DivyanshuChipa <211708943+DivyanshuChipa@users.noreply.github.com>
@DivyanshuChipa DivyanshuChipa merged commit 15da8d8 into master Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant