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

Post your questions and help other users.

Moderator: Martin

User avatar
heilong
Posts: 77
Joined: 18 Oct 2016 15:20

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

Post by heilong » 04 Nov 2016 12:09

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.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

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

Post by Rafi4 » 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
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

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

Post by anuraag » 31 Jul 2019 01:42

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

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

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

Post by Rafi4 » 31 Jul 2019 01:56

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"
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

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

Post by anuraag » 31 Jul 2019 04:55

@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.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

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

Post by Rafi4 » 31 Jul 2019 06:06

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
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

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

Post by anuraag » 31 Jul 2019 07:00

@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.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

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

Post by Rafi4 » 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
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

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

Post by Rafi4 » 31 Jul 2019 16:50

hi Martin
how can I use "android.intent.action.DELETE" in start activity action? I am so eager to know about.
from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

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

Post by anuraag » 01 Aug 2019 02:59

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?

Post Reply