Skip to content

Commit

Permalink
intercept com.android.camera.action.REVIEW (camera: view photo taken)…
Browse files Browse the repository at this point in the history
… and android.intent.action.PICK geo:
  • Loading branch information
k3b committed Dec 18, 2017
1 parent c9ac387 commit 45e1ea5
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 4 deletions.
54 changes: 50 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<action android:name="android.intent.action.PICK" />
<action android:name="android.intent.action.GET_CONTENT" />
<action android:name="android.intent.action.INSERT" />
<action android:name="com.android.camera.action.REVIEW" /><!-- Used by camera to view photo taken -->

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
Expand All @@ -42,9 +43,13 @@
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>

<!-- scheme-intents without mime (mime==null) -->
<intent-filter android:label="@string/intent_filter_label">
<action android:name="android.intent.action.VIEW" >
</action>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />
<action android:name="android.intent.action.GET_CONTENT" />
<action android:name="android.intent.action.INSERT" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
Expand Down Expand Up @@ -77,11 +82,52 @@
<data android:scheme="market" />
<data android:scheme="store" />
<data android:scheme="android" />
</intent-filter>
<!-- same scheme-intents but with mime (mime!=null) -->
<intent-filter android:label="@string/intent_filter_label">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />
<action android:name="android.intent.action.GET_CONTENT" />
<action android:name="android.intent.action.INSERT" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="about" />
<data android:scheme="javascript" />
<data android:scheme="mailto" />
<data android:scheme="geo" />
<data android:scheme="file" />

<data android:scheme="rtsp" />
<data android:scheme="rtmp" />
<data android:scheme="ftp" />
<data android:scheme="sftp" />

<data android:scheme="skype" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
<data android:scheme="mms" />
<data android:scheme="mmsto" />
<data android:scheme="spotify" />
<data android:scheme="tel" />
<data android:scheme="voicemail" />
<data android:scheme="view-source" />
<data android:scheme="sqlite" />

<!-- Intercept Google play links -->
<data android:scheme="market" />
<data android:scheme="store" />
<data android:scheme="android" />

<data android:mimeType="*/*" />
</intent-filter>

<intent-filter android:label="@string/intent_filter_label">
<action android:name="android.intent.action.PICK" >
</action>
<action android:name="android.intent.action.PICK" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Expand Down
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/301.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
* codebymikey committed on 30 Sep 2017: Allow intercepting of media links.
* codebymikey committed on 30 Sep 2017: Show quick previews of Bundle and array object entries.
* intercept com.android.camera.action.REVIEW Used by camera to view photo taken
* intercept android.intent.action.PICK for geo: uri-s

1 comment on commit 45e1ea5

@TPS
Copy link

@TPS TPS commented on 45e1ea5 Dec 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@k3b Are you able to update F-droid w/ this release? Also, maybe also release on GPlay &/or Amazon Appstore?

Please sign in to comment.