Page 1 of 1
Allow multiple View Web URL intents
Posted: 07 Sep 2017 18:29
by Bluscre
Wouldn't it be awesome if every "View Web URL Intent Recieved" trigger would have it's own entry in the "open with" list based on the triggers name?
Also filtering the data_string directly against text/blob/regex would be neat if you're already working on it
Aaand one more thing, custom icons per trigger (don't know if that one's possible) the others are for sure ^~^
Re: Allow multiple View Web URL intents
Posted: 08 Sep 2017 01:31
by Desmanto
As I understand, you want new icon with each Web URL intent receiver for every trigger? So you can choose the correct one for each flow you want?
Probably very hard to be implemented. This requires automagic to register new intent receiver for every new flow which use this trigger. It will spam too many choices which I believe most users don't want it. The better way is to split the usage per URL is to use parallel expression, which I have used since the first week of migration from tasker.
View Web URL, Single Intent received, Multiple Intent received can be paired with input dialog. This will allow you to add as many choices as you want. It works just like autoshare which also only has one receiver (3 actually, but only one is useful) but you can choose the commands afterward. Except that Automagic can do it by itself, no need additional plugin.
From input dialog, use as many expression as needed to check the choice, each with its own expression. It works just like the Parallel vs Series thread I have shared before.
For custom icon, It is nice to see if we can put icon in the input dialog too. But don't know if it is possible.
Re: Allow multiple View Web URL intents
Posted: 08 Sep 2017 04:49
by Bluscre
Desmanto wrote:This requires automagic to register new intent receiver for every new flow which use this trigger. It will spam too many choices which I believe most users don't want it.
Can't it add/remove them dynamically? OGYoutube for example does that.
Desmanto wrote:The better way is to split the usage per URL is to use parallel expression, which I have used since the first week of migration from tasker.
I already do this since i first utilized URL intents.
Re: Allow multiple View Web URL intents
Posted: 08 Sep 2017 05:11
by Desmanto
Bluscre wrote:
Can't it add/remove them dynamically? OGYoutube for example does that.
Maybe it creates a dynamic intent receiver and reinstall the receiver when we change the setting. Need to wait for Martin. If this is possible, then I would like the Intent Received and Multiple Intent Received to have this feature as well.
Since all three share the same feature.
Re: Allow multiple View Web URL intents
Posted: 08 Sep 2017 05:13
by Bluscre
Desmanto wrote:Bluscre wrote:
Can't it add/remove them dynamically? OGYoutube for example does that.
Maybe it creates a dynamic intent receiver and reinstall the receiver when we change the setting. Need to wait for Martin. If this is possible, then I would like the Intent Received and Multiple Intent Received to have this feature as well.
Since all three share the same feature.
Yep, i have the slight fear that OGYoutube cheats by just changing it's own components :/
Re: Allow multiple View Web URL intents
Posted: 09 Sep 2017 12:14
by Martin
Not sure how this could be done since Automagic has to statically declare the intent receivers of an activity in the manifest. Multiple components that are enabled/disabled on demand could work but somehow sounds like it could cause trouble on some devices.
Does OGYoutube provide a way to specify a user defined icon or just a few different ones defined by OGYoutube itself?
Regards,
Martin
Re: Allow multiple View Web URL intents
Posted: 09 Sep 2017 16:22
by Desmanto
Maybe they reserved several intent receivers, let say 10 and have them disabled by default. When the user enable 3 share, then 3 of them enabled and mapped to each of the choice.
AFAIK, there are xposed app such as custom share, complete action plus which can disable the intent receivers. But they can't add it, so probably to reserved the intent receiver is the only way.
Re: Allow multiple View Web URL intents
Posted: 09 Sep 2017 19:38
by Martin
Yes, a few disabled components is the only way with a regular non-rooted Android that could work to my knowledge (maybe generating APKs dynamically on the device could also work but this seems way too complicated for such a small feature).