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 ^~^
Allow multiple View Web URL intents
Moderator: Martin
Allow multiple View Web URL intents
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Allow multiple View Web URL intents
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.
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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Allow multiple View Web URL intents
Can't it add/remove them dynamically? OGYoutube for example does that.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.
I already do this since i first utilized URL intents.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.
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Allow multiple View Web URL intents
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.Bluscre wrote: Can't it add/remove them dynamically? OGYoutube for example does that.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Allow multiple View Web URL intents
Yep, i have the slight fear that OGYoutube cheats by just changing it's own components :/Desmanto wrote: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.Bluscre wrote: Can't it add/remove them dynamically? OGYoutube for example does that.
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Allow multiple View Web URL intents
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
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
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.
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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Allow multiple View Web URL intents
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).