Commit 8ad6ae8
Feature/share intent support 13723853070791812408 (#10)
* Add Share Intent support for photos
- 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>
* Add Share Intent support and fix ForegroundService crash
- 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>
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: DivyanshuChipa <211708943+DivyanshuChipa@users.noreply.github.com>1 parent 319339c commit 8ad6ae8
3 files changed
Lines changed: 37 additions & 16 deletions
File tree
- app/src/main
- java/com/example/intra
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
48 | 63 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
100 | 114 | | |
101 | 115 | | |
102 | 116 | | |
| |||
324 | 338 | | |
325 | 339 | | |
326 | 340 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | 341 | | |
335 | 342 | | |
336 | 343 | | |
| |||
0 commit comments