EAP version 1.22.0-dev

Forum to discuss everything related to the current development build of Automagic.

Moderator: Martin

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

EAP version 1.22.0-dev

Post by Martin » 04 Mar 2014 19:23

This forum is used to give interested users access to the next version of Automagic currently in development.
The early access version is only lightly tested and might still contain serious bugs. The quality of EAP versions can at times be even way below usual beta standards.

:arrow: Use at your own risk!
:arrow: Ensure to create a backup before you install an EAP version.

Important:
  • The EAP version will replace the Google Play version of Automagic on your device. Flows opened, saved and created with the EAP version will usually not be compatible with old versions of Automagic so it is highly recommended to create a backup of your flows, widgets and variables before you start using the EAP version (create a backup of the folder /<sdcard>/Automagic)
  • Unknown sources needs to be enabled in the settings of Android to install the EAP version.
  • Please report bugs and problems found in the EAP version in the EAP forum or by mail to info@automagic4android.com
  • :!: Don't share flows created using the EAP version in the regular flow sharing area since users of the released Automagic version will not be able to use the new triggers, conditions and actions. Feel free to share flows in the EAP forum.
  • The EAP version only works for about 4 weeks. Please install a new EAP version when the old one expires or install the released version available in Google Play.
Changes
1.22.0-dev (2014-05-05)
  • minor enhancements and bug fixes
  • new trigger Notification on Statusbar Removed (Android 4.3+)
  • new trigger Media Button Event (Experimental) to react to headset buttons like play and pause
  • new trigger Plugin Event (Experimental)
  • new trigger Sound Level (Experimental)
  • new condition Notification on Statusbar Displayed to check if a notification is available (Android 4.3+)
  • new condition Keyguard Locked (Android 4.1+)
  • new condition Sound Level (Experimental)
  • new action Query Content Provider to fetch data from calendar-, contact- and SMS-provider (power users)
  • new action Start Service to send an intent to a service
  • new action Init Variables File Info to determine the type, size, last modification and if the file exists
  • new action Reregister Media Button Receiver to register Automagic for media events again
  • new action Init Variable Image File to read the pixel data of an image into a variable
  • new action Modify Image to scale, rotate and mirror an image stored in a variable
  • new action Save Variable in Image File to save image data in a variable into a JPG, WEBP or PNG file
  • extended trigger Notification on Statusbar Selected and action Notification on Statusbar to show a big multiline message and up to three arbitrary actions (Android 4.1+)
  • added options for fine grained control in action Turn Screen On
  • added option to get results in action Start Activity
  • added option to send ordered broadcasts in action Send Broadcast
  • added speech rate, pitch and network synthesis to action Speech Output
  • added flow execution policies (parallel, wait, skip etc., see Flow->Menu->Options)
  • added unicode escape sequences in string literals in scripts (for example "\u00A9" to show the copyright character)
  • added script functions to access string-arraylist extras
  • added script functions to copy lists and maps
  • added script functions to list the keys and values of a map and to check if a map is empty
  • added script function to split a comma separated string into a list of values
  • added script functions getUptimeMillis and getElapsedRealtimeMillis to get the milliseconds since device boot
  • added script functions getPixelColor to read the color of a single pixel of an image and getRed, getGreen, getBlue, getAlpha to extract the color ARGB components
  • added script functions newColor to create a color from red, green, blue and alpha component
  • added support for content- and http-URIs in image elements of custom widgets
  • added new variable event_id to condition and trigger Calendar Event
  • added input type Single Choice Menu to action Input Dialog
  • extended plugin support to show relevant variables, synchronous execution of action plugins. Plugin provided variables whose name end in a number are additionally also provided as a list in Automagic
  • added support to manually edit list/map-variables in global variables screen and condition Debug Dialog
  • pass variables with the name of a custom widget and the clicked cell to an executed flow
  • added variable support to action Set Screen Brightness
  • added option to request audio focus in actions Sound and Speech Output
* This function is not officially supported by Android and might not work on all devices.
** This function requires root access, is not officially supported by Android and might not work on all devices.

Download: Automagic.apk (updated 2014-05-05)

Regards,
Martin

ZSasha
Posts: 103
Joined: 11 Oct 2013 03:48

Re: EAP version 1.22.0-dev

Post by ZSasha » 04 Mar 2014 20:53

Excellent work Martin, thanks a lot!
I would buy Automagic again just to express my gratitude, if I could :)

andosgandos81
Posts: 11
Joined: 29 Mar 2013 08:26

Re: EAP version 1.22.0-dev

Post by andosgandos81 » 05 Mar 2014 20:23

Hi, what means "power users only"? ;-)

Andi.

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

Re: EAP version 1.22.0-dev

Post by Martin » 05 Mar 2014 20:52

Hi,

"power users" in this case means that it's quite complicated to use and needs some knowledge about the inner workings of Android, Content Providers in this case.
I hope this action will be useful anyway. :-)

Regards,
Martin

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

Re: EAP version 1.22.0-dev

Post by Martin » 10 Mar 2014 19:56

A new EAP version is available.

Changes in this update:
  • new trigger Media Button Event (Experimental) to react to headset buttons like play and pause
  • new condition Keyguard Locked (Android 4.1+)
  • new action Init Variables File Info to determine the type, size, last modification and if the file exists
  • new action Reregister Media Button Receiver to register Automagic for media events again
  • new action Init Variable Image File to read the pixel data of an image into a variable
  • new action Modify Image to scale, rotate and mirror an image stored in a variable
  • new action Save Variable in Image File to save image data in a variable into a JPG, WEBP or PNG file
  • added script functions getPixelColor to read the color of a single pixel of an image and getRed, getGreen, getBlue, getAlpha to extract the color ARGB components
  • added script functions newColor to create a color from red, green, blue and alpha component
  • added option to condition App Task Running to check for multiple apps at once and to check the most recent task only
Download: Automagic.apk (updated 2014-03-10)

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: EAP version 1.22.0-dev

Post by colabi » 10 Mar 2014 22:26

Hi Martin
The new trigger Media Button Event don't fire when call is active.
Is this normal behavior?

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

Re: EAP version 1.22.0-dev

Post by Martin » 11 Mar 2014 17:11

Hi,

I think this is the expected behavior since the phone app has precedence to handle the buttons.
You can try to reregister Automagic using an action Reregister Media Button Receiver but I doubt that this works in this case.

Regards,
Martin

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: EAP version 1.22.0-dev

Post by colabi » 12 Mar 2014 14:33

Hi Martin
If we create a copy of a flow, the options for flow (Flow->Menu->Options) is not copied together with new created flow.
Is this a bug?

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

Re: EAP version 1.22.0-dev

Post by Martin » 12 Mar 2014 16:22

Hi,

Yes, that's a bug. Thanks for reporting!
Fixed in the next EAP.

Regards,
Martin

SergeyPro2013
Posts: 13
Joined: 18 Dec 2013 18:32

Re: EAP version 1.22.0-dev

Post by SergeyPro2013 » 12 Mar 2014 17:40

Hello Martin!
There are regular headphones from Samsung smartphone with one button, tried to use a new trigger, but it does not work. Will this trigger in the future to work with standard headphones that have one button (don't know what it was to pause or play)?

These are the button
Image

Locked