daverix / urlforwarder

Enables you to use bookmarklets on Android
GNU General Public License v3.0
44 stars 7 forks source link

Feature request: act on android.intent.action.VIEW #9

Open xandro0777 opened 5 years ago

xandro0777 commented 5 years ago

Hi, this app is a godsend.. but could it be made to catch android.intent.action.VIEW as well? Say in a telegram channel (telefeedbot) I want to view some URLs but have them intercepted by this app.

It generates

intent://www.topky.sk/cl/13/1748635/FOTO-Archeologovia-vo-vytrzeni--Pod-pyramidou-objavili-tunel--tajna-cesta-do-podsvetia#Intent;scheme=https;launchFlags=0x3000000;S.com.android.browser.app
lication_id=org.telegram.messenger;B.create_new_tab=true;end
------------
ACTION: android.intent.action.VIEW
DATA: https://www.topky.sk/cl/13/1748635/FOTO-Archeologovia-vo-vytrzeni--Pod-pyramidou-objavili-tunel--tajna-cesta-do-podsvetia
URI:
intent://www.topky.sk/cl/13/1748635/FOTO-Archeologovia-vo-vytrzeni--Pod-pyramidou-objavili-tunel--tajna-cesta-do-podsvetia#Intent;scheme=https;launchFlags=0x3000000;S.com.android.browser.app
lication_id=org.telegram.messenger;B.create_new_tab=true;end
FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_PREVIOUS_IS_TOP
EXTRAS:
1 Class: java.lang.String
Key: com.android.browser.application_id

Value: org.telegram.messenger
2 Class: java.lang.Boolean
Key: create_new_tab
Value: true

------------
MATCHING ACTIVITIES:
Chrome (com.android.chrome - com.google.android.apps.chrome.IntentDispatcher)
Firefox (org.mozilla.firefox - org.mozilla.gecko.tabqueue.TabQueueDispatcher)
Privacy Browser (com.stoutner.privacybrowser.standard - com.stoutner.privacybrowser.activities.MainWebViewActivity)
Chrome (com.android.chrome - com.google.android.apps.chrome.VrIntentDispatcher)

Unfortunately the url forwarder app is not matched.. otherwise it would be ideal for my purpose.

daverix commented 5 years ago

If it triggered on android.intent.action.VIEW and a data URI that starts with http/https then every link you click on would trigger Android to ask what app you want to view the link with.

UrlForwarder would show as an alternative in that list together with chrome and other possible browser apps. Don't know if I really want that as it's currently meant for share only.

Might be better to create another app for this perhaps?

xandro0777 commented 5 years ago

If it triggered on android.intent.action.VIEW and a data URI that starts with http/https then every link you click on would trigger Android to ask what app you want to view the link with.

UrlForwarder would show as an alternative in that list together with chrome and other possible browser apps. Don't know if I really want that as it's currently meant for share only.

Don't think that would create any inconvenience - given its name this app should show as last in the list in most cases. As most people tend to have only few browsers that list won't be long anyway, certainly very short compared to the typical "share" list.

Might be better to create another app for this perhaps?

A simple app to catch action.VIEW and resend it as action.SEND to urlforwarder would be another possibility.

AlbahrawyTiger commented 1 year ago

I think Url forwarder should appear in the list of android.intent.action.VIEW because there are apps that don't have the option to share the link just open directly