Page 3 of 5

Re: DIY-Actions/Triggers: Start Activity, General Broadcast,

Posted: 04 Nov 2016 12:09
by heilong
6234234234 wrote:Hey guys,

I'm using Sleep as Android as my alarm clock and want to make use of the intents it sends out, specifically the "user pressed snooze button"
Sleep also includes a Tasker plug-in that Automagic can use. There is a "Plugin Event (Experimental)" trigger and "Plugin (Experimental)" action.

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 30 Jul 2019 16:07
by Rafi4
hi Martin
i am successfully using start activity action for
pick file (image and text files). I am unable to play mp3 file using start activity action. I want to play mp3 in floating window through Mp3 cutter application. I want to know the process.

thanks from record4

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 31 Jul 2019 01:42
by anuraag
Rafi4 wrote:
30 Jul 2019 16:07
hi Martin
i am successfully using start activity action for
pick file (image and text files). I am unable to play mp3 file using start activity action. I want to play mp3 in floating window through Mp3 cutter application. I want to know the process.

thanks from record4
It's same process for mp3 files. Which app you using to play audio?
http://automagic4android.com/forum/view ... f=5&t=8140

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 31 Jul 2019 01:56
by Rafi4
hi anuraag
simply I want to know as below. process is

action =start activity (pick file mp3 format)
action = start activity (open mp3 file)

using this application "Mp3 cutter"

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 31 Jul 2019 04:55
by anuraag
@Rafi4 Try this
http://automagic4android.com/flow.php?i ... 5a471fad93

@Martin is it possible to add same workaround to start activity action that you have added to send/share intent received. I'm getting permission denial errors sometimes.

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 31 Jul 2019 06:06
by Rafi4
hi anuraag
when I am using these type of script I am getting permission denial message. so I am using simply as below

action = start activity (pick file)
condition =operation ok
action= start activity (action view )

so post as these type of flow as so simple.

from record4

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 31 Jul 2019 07:00
by anuraag
@Rafi4
I myself gets permission denial error when i run that flow manually but once. Try with shortcut trigger. Create a shortcut in launcher and execute.

If you want simple flow without those script then i guess you have to wait for a workaround to be added by Martin so that we won't loose content uri.

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 31 Jul 2019 12:43
by Rafi4
hi anuraag
this flow is perfectly working without any errors on home screen to view images and read text files.
I want to create as this flow to play mp3

http://automagic4android.com/flow.php?i ... c3b9d72ceb

from record4

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 31 Jul 2019 16:50
by Rafi4
hi Martin
how can I use "android.intent.action.DELETE" in start activity action? I am so eager to know about.
from record4

Re: DIY-Actions/Triggers: Start Activity, General Broadcast, ...

Posted: 01 Aug 2019 02:59
by anuraag
Rafi4 wrote:
31 Jul 2019 12:43
hi anuraag
this flow is perfectly working without any errors on home screen to view images and read text files.
I want to create as this flow to play mp3

http://automagic4android.com/flow.php?i ... c3b9d72ceb

from record4
I have already thought of this way but that wasn't working with all sources like downloads, recents, images, audios, videos.
I have tried your flow on Samsung 8.0 device but samsung gallery unable to open any images.

It looks you are picking up files from either internal or external storage. So i have edited your flow which should work for image, audio, video and text files. Edit 2nd expression to set your apps. Or you may untick Explicit component.

http://automagic4android.com/flow.php?i ... 980b9676d6
Rafi4 wrote:
31 Jul 2019 16:50
how can I use "android.intent.action.DELETE" in start activity action? I am so eager to know about.
That action can be used to uninstall a app.
You want to delete a file using this action?