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

Post your questions and help other users.

Moderator: Martin

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

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

Post by Rafi4 » 01 Jan 2020 09:55

Hi all
Is there any way to get a specific account's calendar events in a list? How can I get?

Happy new year to all.

from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Martin
Posts: 4462
Joined: 09 Nov 2012 14:23

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

Post by Martin » 03 Jan 2020 13:02

Hi,

You can use action Query Content Provider to get a list of calendar events. You can base it on the example named All current calendar events. You could change the last part of the content uri from {triggertime} to {triggertime+7*24*60*60*1000} to read all events in the next 7 days and then try to filter the calendars with the selection field. You can try to disable the projection to get all fields in the result and change the result type to table and then analyze the result with a condition Debug Dialog to see what the calendar returns.
Unfortunately there's currently no better way to access this data. Please also check the flow sharing area. Maybe someone already wrote a flow for something similar.

Regards,
Martin

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

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

Post by Rafi4 » 05 Jan 2020 02:36

Hi Martin and all
Is there any way to get memo list in input dialog using query Content Provider action? Package name "com.samsung.android.app.memo"

And also I want to know how to
View a memo
Edit a memo
Delete a memo
Thanks from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

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

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

Post by Rafi4 » 11 Jan 2020 02:56

Hi
Martin
Is it possible to get data (variable value) with send broadcast action?
How can I?
Thanks from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Desmanto
Posts: 2629
Joined: 21 Jul 2017 17:50

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

Post by Desmanto » 11 Jan 2020 06:19

@Rafi4 : For Samsung memo, if the app doesn't provide the data, there is no direct way to access it. Even if it have the content provider, you have to look at the documentation on how to read/write to it. As I don't use this, can't help much on this. I am still waiting on AM 1.38 before learning much more about content provider.

You can get the data from broadcast using trigger general broadcast. See the example to show how to get the extras. Not all app provide intent broadcast you can use. You have to look on the app documentation to see if it support it.
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.

KVN
Posts: 4
Joined: 06 Feb 2020 15:23

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

Post by KVN » 20 Feb 2020 23:13

Hi all

I has this task

1. I have folder on mobile in folder has files - 1.jpg and .nomedia
2. I delete .nomedia
3. Go to gallety and no see 1.jpg
4. I need do it - https://developer.android.com/reference ... ng.String)
5. I think that i need use Action - Send Broadcast

But HOW:))??

That i can write in
Send Broadcast:
Action ?
Category List ?
Data URI ?
.....
Extras?

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

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

Post by anuraag » 21 Feb 2020 00:00

@KVN Try action
Update Media Database

KVN
Posts: 4
Joined: 06 Feb 2020 15:23

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

Post by KVN » 21 Feb 2020 06:03

anuraag wrote:
21 Feb 2020 00:00
@KVN Try action
Update Media Database
Big Thank You - it is solve my Task :)

But i want know too how it solve use intent, please give example for 1 files...

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

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

Post by anuraag » 21 Feb 2020 07:46

KVN wrote:
21 Feb 2020 06:03
anuraag wrote:
21 Feb 2020 00:00
@KVN Try action
Update Media Database
Big Thank You - it is solve my Task :)

But i want know too how it solve use intent, please give example for 1 files...
Execute following flow. Select folder where .nomedia file exists.
Attachments
flow_Update_Media_Database_20200221_131451.xml
(4.94 KiB) Downloaded 230 times

KVN
Posts: 4
Joined: 06 Feb 2020 15:23

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

Post by KVN » 21 Feb 2020 14:00

anuraag wrote:
21 Feb 2020 07:46
KVN wrote:
21 Feb 2020 06:03
anuraag wrote:
21 Feb 2020 00:00
@KVN Try action
Update Media Database
Big Thank You - it is solve my Task :)

But i want know too how it solve use intent, please give example for 1 files...
Execute following flow. Select folder where .nomedia file exists.
Thank you for this example:) ;)

Post Reply