Skip to content

Commit 45e1ea5

Browse files
committed
intercept com.android.camera.action.REVIEW (camera: view photo taken) and android.intent.action.PICK geo:
1 parent c9ac387 commit 45e1ea5

File tree

2 files changed

+53
-4
lines changed

2 files changed

+53
-4
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<action android:name="android.intent.action.PICK" />
2424
<action android:name="android.intent.action.GET_CONTENT" />
2525
<action android:name="android.intent.action.INSERT" />
26+
<action android:name="com.android.camera.action.REVIEW" /><!-- Used by camera to view photo taken -->
2627

2728
<category android:name="android.intent.category.DEFAULT" />
2829
<category android:name="android.intent.category.BROWSABLE" />
@@ -42,9 +43,13 @@
4243
<category android:name="android.intent.category.BROWSABLE" />
4344
</intent-filter>
4445

46+
<!-- scheme-intents without mime (mime==null) -->
4547
<intent-filter android:label="@string/intent_filter_label">
46-
<action android:name="android.intent.action.VIEW" >
47-
</action>
48+
<action android:name="android.intent.action.VIEW" />
49+
<action android:name="android.intent.action.EDIT" />
50+
<action android:name="android.intent.action.PICK" />
51+
<action android:name="android.intent.action.GET_CONTENT" />
52+
<action android:name="android.intent.action.INSERT" />
4853

4954
<category android:name="android.intent.category.DEFAULT" />
5055
<category android:name="android.intent.category.BROWSABLE" />
@@ -77,11 +82,52 @@
7782
<data android:scheme="market" />
7883
<data android:scheme="store" />
7984
<data android:scheme="android" />
85+
</intent-filter>
86+
<!-- same scheme-intents but with mime (mime!=null) -->
87+
<intent-filter android:label="@string/intent_filter_label">
88+
<action android:name="android.intent.action.VIEW" />
89+
<action android:name="android.intent.action.EDIT" />
90+
<action android:name="android.intent.action.PICK" />
91+
<action android:name="android.intent.action.GET_CONTENT" />
92+
<action android:name="android.intent.action.INSERT" />
8093

94+
<category android:name="android.intent.category.DEFAULT" />
95+
<category android:name="android.intent.category.BROWSABLE" />
96+
97+
<data android:scheme="http" />
98+
<data android:scheme="https" />
99+
<data android:scheme="about" />
100+
<data android:scheme="javascript" />
101+
<data android:scheme="mailto" />
102+
<data android:scheme="geo" />
103+
<data android:scheme="file" />
104+
105+
<data android:scheme="rtsp" />
106+
<data android:scheme="rtmp" />
107+
<data android:scheme="ftp" />
108+
<data android:scheme="sftp" />
109+
110+
<data android:scheme="skype" />
111+
<data android:scheme="sms" />
112+
<data android:scheme="smsto" />
113+
<data android:scheme="mms" />
114+
<data android:scheme="mmsto" />
115+
<data android:scheme="spotify" />
116+
<data android:scheme="tel" />
117+
<data android:scheme="voicemail" />
118+
<data android:scheme="view-source" />
119+
<data android:scheme="sqlite" />
120+
121+
<!-- Intercept Google play links -->
122+
<data android:scheme="market" />
123+
<data android:scheme="store" />
124+
<data android:scheme="android" />
125+
126+
<data android:mimeType="*/*" />
81127
</intent-filter>
128+
82129
<intent-filter android:label="@string/intent_filter_label">
83-
<action android:name="android.intent.action.PICK" >
84-
</action>
130+
<action android:name="android.intent.action.PICK" />
85131

86132
<category android:name="android.intent.category.DEFAULT" />
87133
</intent-filter>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
* codebymikey committed on 30 Sep 2017: Allow intercepting of media links.
22
* codebymikey committed on 30 Sep 2017: Show quick previews of Bundle and array object entries.
3+
* intercept com.android.camera.action.REVIEW Used by camera to view photo taken
4+
* intercept android.intent.action.PICK for geo: uri-s
5+

0 commit comments

Comments
 (0)