[Q] API: Capture position when closing video - MX Player

I have several tablets, PCs and laptops around the house, and I like to move from one room / project to the next while continuing to watch whatever video I have loaded.
Currently I am using tasker and google drive to manually sync the video position, and a tasker shortcut to launch the video at the point where I closed it on the previous device.
It goes like this: I have three text files on google drive, path.txt, video.txt and position.txt. I manually add path and video when I start a movie and set position to 00:00:01. When I close the video to move to another device I tap a tasker scene shortcut where I enter the position as hhmmss. This automatically syncs to my server and is accessed when I use a tasker shortcut to launch the video on the next machine, converting the hhmmss to milliseconds.
I could really streamline this if I could capture the position of the video automatically, using android intents. I've read the API and searched all over the place but it seems that MX Player intent and extras cannot be captured from tasker.
Any suggestions? I'm not looking to switch to new programs, I use tasker intent to launch on android and windows batch files to launch VLC on XP, Vista, 7, 8, etc. It works for me, but this one improvement could really make it smooth.
Any suggestions as to how to do this?
Thanks

I'm no expert on the API, but [Result: com.mxtech.intent.result.VIEW] > Extras > position doesn't give what you are looking for?

I tried using a profile in Tasker with Intent Received as the Event.
I tried using a profile in Tasker with Intent Received as the Event.
Event = Intent Received
Action = com.mxtech.intent.result.VIEW
This is supposed to trigger a Task where %position is written to a text file.
The Event doesn't trigger when I close the video.
The video is launched from a task using Send Intent
Action = android.intent.action.VIEW
Data = video file
Extra = position read from file to variable
Extra = return_result:true
Package = com.mxtech.videoplayer.ad
Taget = Activity
The video launches at the correct position, no problem. I use this all the time, but I manually enter the last played position using a popup scene with a textedit that writes to a file on my Google Drive.
So far, I have been unable to find a way to capture %position or even trigger the Event to show that Tasker is receiving a result when the video is closed.
CDB-Man said:
I'm no expert on the API, but [Result: com.mxtech.intent.result.VIEW] > Extras > position doesn't give what you are looking for?
Click to expand...
Click to collapse

Have you tried sample code attached on the API page?
FYI, Activity.startActivityForResult() should be used instead of Activity.startActivity() to receive Activity.onActivityResult() callback.

I was trying to accomplish this with Tasker. The code would be for an app developer, unless I'm looking at it wrong. It does look like the only option though, so I might give it a try. I did mess around with Eclipse a little a few years ago.
Thanks
bleu8888 said:
Have you tried sample code attached on the API page?
FYI, Activity.startActivityForResult() should be used instead of Activity.startActivity() to receive Activity.onActivityResult() callback.
Click to expand...
Click to collapse

Related

[APP][2.2+] My Car: Start car with voice/Vlingo/Viper/schedule based on temp/location

I was inspired for this by Fiqett, who created a Siri plugin that communicates with a PHP script that can start his car via his Viper SmartStart system. Much credit to him for the idea and the script.
This does something similar on Android (using Vlingo), along with some extra features (you can schedule the car to start based on the location of your phone and the current temperature).
What does it do?
You can start Vlingo and say “Start my car” and the car will start (you need a phone-capable Viper SmartStart system)
You can just tap the app and the car will start
You can schedule the car to start automatically at a certain time if the phone is at a defined location and if the temperature is below a defined setting
Please read this post completely before downloading. Some setup is required. Do not hesitate to ask if you are having trouble setting it up.
What does this require?
A phone-compatible Viper SmartStart system or module
An Android SmartPhone running Android 2.2 or later. I have tested this on a Galaxy Nexus and a Motorola Droid 1.
Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control)
A web server running PHP to run the control script (something like Xampp will work fine [http://www.apachefriends.org/en/xampp.html]). If there is enough interest in this, I can provide detailed instructions for configuring Xampp, but the configuration is straightforward.
My Android app (My Car, links below)
Vlingo (https://market.android.com/details?id=com.vlingo.client)
AndroidIdeas's TaskBomb (https://market.android.com/details?id=org.androidideas.taskbomb&hl=en) (any scheduler that can launch an activity will work)
How do I set it up?
Download Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control). Edit lines 9 and 10 to include your Viper username and password. Because the username and password are hardcoded in the script, the credentials are never passed insecurely between the phone and the server. The control script logs into Viper's servers and performs the requested action over HTTPS, so it is secure.
Put viper_control.php on a web server that is running PHP. I have it on a website hosted on GoDaddy.com. It would be more secure to put it on your home network and only access it via WiFi. You could also forward ports on your router so it could be accessible from anywhere. Something like Xampp (http://www.apachefriends.org/en/xampp.html) would probably run the script fine on Windows, Mac OS X, or Linux. Anyone with the knowledge that the script exists can start or unlock the car. Thus, the most secure way is to only access it via WiFi.
Once the script is set up, you should be able to go to your control URL in a browser (followed by ?action=remote) and the car should start (for example, http://192.168.0.100/viper_control.php?action=remote).
Install My Car (link is below).
Start the My Car Configuration app. Enter the URL for your viper_control.php script (do not put ?action=remote on the end). The other settings are optional and are for the Start My Car If app, which will start the car if the car is in the provided city and the temperature is under the provided value. Make sure you click Exit when you are done. Otherwise, Vlingo or TaskBomb might start the configuration instead of the car.
Run the My Car app. The car should start. If you run it again, the car should shut off.
Install Vlingo. I checked the Auto Listen box at the bottom so that it will start listening as soon as I start Vlingo (or you could use a Vlingo widget). You should be able to say “Start my car” to start the car.
Install TaskBomb for scheduling the car to start. Launch it, and go to Tasks. Add a new task, and name it “Start My Car.” Change the Action Type to MAIN. For Activity, select Start My Car If. Leave all other settings as they are. Go to Alarms. Add a new alarm, and select the task you just created. Set the schedule as desired. Mine runs Monday-Friday at 7:20am.
How do I get it?
Download the APK here:
http://www.ascci.net/mycar/MyCar.apk
Note: Google Chrome on ICS appears to rename this to a .zip file. Use a file manager to name it back or use the stock browser.
Plans for future versions:
App icons (I’m not very good at those, but I will take a stab at it if people use the app)
Display something to indicate if the car started or not
A way to start the car and immediately unlock it--for when you are in sight of it and want to start it just to be cool.
Any feedback, questions, or suggestions are welcome!
Lots of views... has anyone with a SmartStart system tried it? Any feedback?
Is there anything I could do to make the setup simpler (a video, providing Xampp setup instructions, etc.)?
is there a way to integrate it with BB10 Voice Control? :fingers-crossed:
hitchin999 said:
is there a way to integrate it with BB10 Voice Control? :fingers-crossed:
Click to expand...
Click to collapse
Might take a little digging, but we could probably figure out a way to get something working.
It appears that BB10's voice control has an "open" or "launch" command that works for some side-loaded Android apps.
http://forums.crackberry.com/blackberry-10-os-f269/voice-control-commands-772534/
Unfortunately, it doesn't look like "start" is a valid thing to say, so saying "Launch My Car" could work, but not as cool (that's why I was using Vlingo, because its key word to start apps is "start.") Although, since this is very new, maybe "start" is a valid thing to say to start an app.
The user on that post above states that this works for some side-loaded Android apps. We'd need to figure out what the criteria by which an Android app can be launched by BB10 via voice control is.
Would you be able to test it with some random Android app that runs on BB10, preferably one with a space in the name, to see if it works?
So for example, say "launch Angry Birds."
If it can do that, hopefully we can come up with something that will work. The scheduling part might be easier to do some other way (Viper's app has scheduling now, it didn't at the time of the OP).
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
Would you be willing to share those apps? I want to do the same exact thing but am having trouble.
Sent from my XT1056 using Tapatalk
gildan27 said:
I was inspired for this by Fiqett, who created a Siri plugin that communicates with a PHP script that can start his car via his Viper SmartStart system. Much credit to him for the idea and the script.
This does something similar on Android (using Vlingo), along with some extra features (you can schedule the car to start based on the location of your phone and the current temperature).
What does it do?
You can start Vlingo and say “Start my car” and the car will start (you need a phone-capable Viper SmartStart system)
You can just tap the app and the car will start
You can schedule the car to start automatically at a certain time if the phone is at a defined location and if the temperature is below a defined setting
Please read this post completely before downloading. Some setup is required. Do not hesitate to ask if you are having trouble setting it up.
What does this require?
A phone-compatible Viper SmartStart system or module
An Android SmartPhone running Android 2.2 or later. I have tested this on a Galaxy Nexus and a Motorola Droid 1.
Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control)
A web server running PHP to run the control script (something like Xampp will work fine [http://www.apachefriends.org/en/xampp.html]). If there is enough interest in this, I can provide detailed instructions for configuring Xampp, but the configuration is straightforward.
My Android app (My Car, links below)
Vlingo (https://market.android.com/details?id=com.vlingo.client)
AndroidIdeas's TaskBomb (https://market.android.com/details?id=org.androidideas.taskbomb&hl=en) (any scheduler that can launch an activity will work)
How do I set it up?
Download Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control). Edit lines 9 and 10 to include your Viper username and password. Because the username and password are hardcoded in the script, the credentials are never passed insecurely between the phone and the server. The control script logs into Viper's servers and performs the requested action over HTTPS, so it is secure.
Put viper_control.php on a web server that is running PHP. I have it on a website hosted on GoDaddy.com. It would be more secure to put it on your home network and only access it via WiFi. You could also forward ports on your router so it could be accessible from anywhere. Something like Xampp (http://www.apachefriends.org/en/xampp.html) would probably run the script fine on Windows, Mac OS X, or Linux. Anyone with the knowledge that the script exists can start or unlock the car. Thus, the most secure way is to only access it via WiFi.
Once the script is set up, you should be able to go to your control URL in a browser (followed by ?action=remote) and the car should start (for example, http://192.168.0.100/viper_control.php?action=remote).
Install My Car (link is below).
Start the My Car Configuration app. Enter the URL for your viper_control.php script (do not put ?action=remote on the end). The other settings are optional and are for the Start My Car If app, which will start the car if the car is in the provided city and the temperature is under the provided value. Make sure you click Exit when you are done. Otherwise, Vlingo or TaskBomb might start the configuration instead of the car.
Run the My Car app. The car should start. If you run it again, the car should shut off.
Install Vlingo. I checked the Auto Listen box at the bottom so that it will start listening as soon as I start Vlingo (or you could use a Vlingo widget). You should be able to say “Start my car” to start the car.
Install TaskBomb for scheduling the car to start. Launch it, and go to Tasks. Add a new task, and name it “Start My Car.” Change the Action Type to MAIN. For Activity, select Start My Car If. Leave all other settings as they are. Go to Alarms. Add a new alarm, and select the task you just created. Set the schedule as desired. Mine runs Monday-Friday at 7:20am.
How do I get it?
Download the APK here:
http://www.ascci.net/mycar/MyCar.apk
Note: Google Chrome on ICS appears to rename this to a .zip file. Use a file manager to name it back or use the stock browser.
Plans for future versions:
App icons (I’m not very good at those, but I will take a stab at it if people use the app)
Display something to indicate if the car started or not
A way to start the car and immediately unlock it--for when you are in sight of it and want to start it just to be cool.
Any feedback, questions, or suggestions are welcome!
Click to expand...
Click to collapse
I am willing to pay you to help me set this up with tasker app factory. Private message me if you're interested.
Sent from my XT1056 using Tapatalk
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
is it possible that you could show me how to make my assistant app start my car i will donate to you for the assistance
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
I found copies of your tasks elsewhere and am using in them with Tasker and Autovoice.
Do you know how to check status updates or get gps?
No I do not, sorry. I reactivated my SmartStart recently but it doesn't work right now.
if this post is still alive... I'd like to be able to send a request that unlocks the doors and then starts the car with one command, custom iPhone icon or web script. the reminder built into the app tries to start the car before disarm and alarm goes off every time. and of course, I'll pay.
Alexa, Start my Car
I finally stabilized a project that I have been working on for some time now. The project is to open my garage and start my jeep on demand using the Amazon Alexa voice assistant. Similar to the features on the Tesla. Using the Raspberry PI Zero and my existing home automation system, I can now command my Echos to “Warm up my Jeep” and be more confident that the task will run.
I first created this project by writing a program in the Android app Tasker where I used the Insteon APIs and the Viper SmartStart APIs to control both my garage and jeep. The program was to open the garage, wait for a confirmation that the garage was opened, and then start my jeep only if the garage was opened, all by a voice command. But the program was unreliable. It would work sometimes but most times it didn’t. I believe that the program was too process intensive for my Samsung S8 smartphone.
A few weeks ago, I decided to use another processing mechanism; the Raspberry PI. I found a python script on GetHub that uses the Viper Smartstart APIs to start my jeep. I installed it, tailored it to my needs, and wrapped a CGI script around it so that I can easily call it from my existing home automation system as an external network resource. I created a program that opens my garage, wait for a confirmation that my garage was opened, and then call the network resource that starts my jeep.
With my home automation system already integrated with the Amazon Alexa services, it was easy to have my Echos run my program to start my jeep. I basically set up my program in the Amazon Alexa app as a new device and created an Alexa Routine, for a customized command. I now say “Alexa, warm up my jeep” and the Alexa services open my garage and start up my jeep.
This project is awesomely convenient for me and secure as well. It easily fits within my already existing security model. Taking advantage of my Geo Fencing features, the program is designed to run only if I’m at home. And it is only accessible within my internal network. The alerts whenever my garage is opened and/or closed are still in place. And my security cameras and control panels still show me the garage whenever the garage door is opened and/or closed.
This was an exciting project and I’m still making enhancements to it, but for the most part it works as I intended, and it is much more reliable than using Tasker.
spoteat71 said:
Alexa, Start my Car
I finally stabilized a project that I have been working on for some time now. The project is to open my garage and start my jeep on demand using the Amazon Alexa voice assistant. Similar to the features on the Tesla. Using the Raspberry PI Zero and my existing home automation system, I can now command my Echos to “Warm up my Jeep” and be more confident that the task will run.
I first created this project by writing a program in the Android app Tasker where I used the Insteon APIs and the Viper SmartStart APIs to control both my garage and jeep. The program was to open the garage, wait for a confirmation that the garage was opened, and then start my jeep only if the garage was opened, all by a voice command. But the program was unreliable. It would work sometimes but most times it didn’t. I believe that the program was too process intensive for my Samsung S8 smartphone.
A few weeks ago, I decided to use another processing mechanism; the Raspberry PI. I found a python script on GetHub that uses the Viper Smartstart APIs to start my jeep. I installed it, tailored it to my needs, and wrapped a CGI script around it so that I can easily call it from my existing home automation system as an external network resource. I created a program that opens my garage, wait for a confirmation that my garage was opened, and then call the network resource that starts my jeep.
With my home automation system already integrated with the Amazon Alexa services, it was easy to have my Echos run my program to start my jeep. I basically set up my program in the Amazon Alexa app as a new device and created an Alexa Routine, for a customized command. I now say “Alexa, warm up my jeep” and the Alexa services open my garage and start up my jeep.
This project is awesomely convenient for me and secure as well. It easily fits within my already existing security model. Taking advantage of my Geo Fencing features, the program is designed to run only if I’m at home. And it is only accessible within my internal network. The alerts whenever my garage is opened and/or closed are still in place. And my security cameras and control panels still show me the garage whenever the garage door is opened and/or closed.
This was an exciting project and I’m still making enhancements to it, but for the most part it works as I intended, and it is much more reliable than using Tasker.
Click to expand...
Click to collapse
Is it still working?

[APP] Automagic

For those not aware of automagic:
Automagic is a automation application that uses a flow-chart interface to set-up the automations you want. It has a few pre-programmed flows (mostly hidden in the 'catalog'), but it's mainly the imagination that's the limit. So my reasoning for this post is collecting more flow charts or ideas, share them with others and hopefully inspire more.
Link
Automagic for Gleeo
Automagic premium
Automagic for gleeo is in principal for their time managing app Gleeo, but it can be used for a number of different tasks as wel.
Automagic premium is their paid app, I know that's commercial but it only features more actions/triggers/... than the free version, which is already pretty versatile on its own.
Flow charts
flow charts typically consist of
- a trigger (rectangle box with rounded corners)
- a condition (diamond box)
- an action (rectangle box)
My flow charts
- basic airplane mode by clock (see catalog by pressing the menu button)
- a basic wifi connected > disable mobile data // wifi disconnected > enable mobile data
- 2 NFC triggered flows (but they could be altered to location/time)
This app looks interesting. Love the flow chart design.
I downloaded the lite version, but there seem to be very little things I can do with it.
I dont mind paying for the pro, but would like to test the task that I wish to setup firtst; as I've already bought AutomateIt and Tasker (too complicated for my usage). AutomateIt does not have some actions that I wish to setup e.g. WIFI tethering.
Is there a trial app? or do you happen to have a Xperia S, and can confirm if the following action work:
1) trigger on/ off WIFI tethering (without intervention)
2) trigger on/ off GPS (without intervention)
3) trigger on/ off NFC (without intervention)
This application shows a lot of potential. I bought the pro version and will play around with it as soon as I have some time. In the mean time, I downloaded and activated and313's Proximity Screen On/Off flow. It works pretty well except for a weird admin problem message when trying to turn off the screen.
Overall, a good program with a lot of potential. Well done guys :good:
Edit: Enabling admin privileges for Automagic from settings solves the issue.
Been using this as a replacement for Tasker and have been very happy with it. The flowchart style profiles and logging options make creating complex profiles much easier. The other thing I like is that many options like NFC or lockscreen toggling are built in and it doesn't need all the extra addins/plugins that I needed to get things done with Tasker.
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
utter! + Automagic + permanent voice recognition
Hi, good day all.
I'm trying to use command:2 (invoke permanent voice recognition) intent via automagic instead of Tasker. I much prefer Automagic and will not turn away from it. (I'm a novice re: programming language if even that)
I'll explain what I have tried so far, hopefully someone can lend a helping hand.
In Automagic I have tried "Start Activity" and "Send Broadcast" Action Types.
I'm making some progress with the "Start Activity" Action where my...
-ACTION TYPE = "Start Activity"
-ACTION = "android.intent.action.SEND"
-Explicit Component Checked...
PACKAGE NAME = "com.brandall.nutter"
CLASS NAME = "com.brandall.nutter.EIH"
EXTRAS =
"putString(command, 2);
putString(password, mypassword123)"
The ACTION results in a toast "utter! password failure for external application", it looks like the command is registering, but the password is not.
My utter! POWER USER PASSWORD = "mypassword123" literally, to make things simple... that password worked for me when invoking command:2 in Tasker. I've tried different alphanumeric passwords in utter! as well.
In other words I'm trying to set the data extras in automagic to "command:2" and "password:mypassword123", but, Automagic forces ";" and forces "putString" prestatements, if that makes any sense.
It looks like automagic has all intent Function, Variable, and Snippet options ie: putString, putBoolean, putFloat, putDouble etc.
How can I get Automagic activate the permanent voice recognition function in utter!?
It would be great to just be able to have some kind of activity shortcut to turn on off voice recognition instead of this, or just have it boot with phone boot. But I'm definately not complaining as utter! is free and very good!, thanks!
RESOLVED!
The great people at Automagic have replied to me (very quickly I might add) and have resolved my problem.
So for those of you who wish to control the permanent voice recognition of utter! via Automagic, here's the solution...
"Hi,
Your configuration almost works, only the extras field needs some small adjustments:
-ACTION: doesn't matter
-Explicit Component: Checked
-PACKAGE NAME: com.brandall.nutter
-CLASS NAME: com.brandall.nutter.EIH
-EXTRAS:
putInt("command", 4);
putString("password", "test");
It seems that utter uses an int for the command and not a string so you have to use the putInt function in this case.
The first parameter of the putInt and putString function needs to be a string, therefore the key has to be put into double quotes otherwise it would refer to a variable with this name.
Please also see the help page of action 'Script' for a description of the scripting language:
http://automagic4android.com/en/help/components#action_script
Utter also offers a plugin which can be used in Automagic with the action 'Plugin' but I'm not sure if utter allows to control the same functions using the plugin.
Automagic ROCKS!:good:
unknown cell ID's
In Llama, there's a trigger to invoke an action whereby if you are connected to unknown cell ID's the action is triggered. I wonder if it's possible to do the same on Automagic. Any ideas?
Hi,
please add a new action > remove / disable alarm
edit: calendar event from google calendar works also? edit 3: tested, its working
edit 2: Location based condition need a button "current Location"
cheers
starbase64
starbase64 said:
Hi,
please add a new action > remove / disable alarm
edit: calendar event from google calendar works also? edit 3: tested, its working
edit 2: Location based condition need a button "current Location"
cheers
starbase64
Click to expand...
Click to collapse
Try posting your requests on the automagic site. I don't think the developer has anything to do with this thread.
http://automagic4android.com/en/
simonwil said:
Try posting your requests on the automagic site. I don't think the developer has anything to do with this thread.
http://automagic4android.com/en/
Click to expand...
Click to collapse
Yes, I forgot to mention I'm not the developer,
Just made this post to form a basis to share flows with other xda users.
For official news/posts/questions/... use the links provided in the post.
Firehead said:
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
Click to expand...
Click to collapse
I've been wondering that as well. This is a truly amazing app, and automating my phone has never been this fun. Automagic is compatible with all the Tasker plugins, and I have yet to find anything I can't do with this app that I could do with Tasker.
Here is part of my battery saving flow, enabling data traffic for a short while four times per hour while the screen is off (except for during nights and when battery is low), at the same time making sure not to turn off data if there is any ongoing traffic.
I could do the same in Tasker, but I find it so much easier to do when you can see the whole automation flow like this. Also, it looks impressive
malexin said:
I've been wondering that as well. This is a truly amazing app, and automating my phone has never been this fun. Automagic is compatible with all the Tasker plugins, and I have yet to find anything I can't do with this app that I could do with Tasker.
Here is part of my battery saving flow, enabling data traffic for a short while four times per hour while the screen is off (except for during nights and when battery is low), at the same time making sure not to turn off data if there is any ongoing traffic.
I could do the same in Tasker, but I find it so much easier to do when you can see the whole automation flow like this. Also, it looks impressive
Click to expand...
Click to collapse
How is this profile working for you? Would you mind sharing it?
steelersmb said:
How is this profile working for you? Would you mind sharing it?
Click to expand...
Click to collapse
It's working very well, and my battery lasts noticeably longer. Previously I was using a separate app for this, but making my own flow was more fun, and works just as well.
Here are the flows for you (one for when turning the screen off and one for when turning it on).
malexin said:
It's working very well, and my battery lasts noticeably longer. Previously I was using a separate app for this, but making my own flow was more fun, and works just as well.
Here are the flows for you (one for when turning the screen off and one for when turning it on).
Click to expand...
Click to collapse
Thanks, brow, but how do I import this .xml file into the app?
Firehead said:
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
Click to expand...
Click to collapse
I think it's because he doesn't use advertisement for promote hes app
Importing flow as XML file
fuone said:
Thanks, brow, but how do I import this .xml file into the app?
Click to expand...
Click to collapse
Hi,
also tried to import xml files into Automagic Premium (AP)
But whithin the app you just get some bad Apps to select for opening the importing file. (Look at: Menue=>Manage=>Import Flows/Widgets)
So here is how it works for me:
- search file with any file browser
- try to open it and select AP for this action
- done
Next you open AP you'll find the flow at the "Ungrouped" folder, or in the folder defined by the programmer.
Hope this can help.
Hi,
press the 3dot to open the quick menü for this flow and then press send, now you can attached the xml file here
regards
starbase64
This is best automation app i have ever used as i used tasker and lima.. But this app is so powerful and so fun.. I love it.. And so easy to use.. Recommended for everyone...
I know this is an old thread, but I just found out about it and was wondering if anyone had any amazing flows they'd like to share?

[APP][2.3.3+] NFC Task Launcher - 6.0

With the release of NFC Task Launcher 4.1 I'm consolidating the threads into one application thread.
Market Link: https://play.google.com/store/apps/details?id=com.jwsoft.nfcactionlauncher
Put an NFC tag in your car, home, office and bedroom and automatically change settings, and launch apps by touching a tag. NFC Task Launcher supports all tags now with a fixed ID, writeable and read-only tags. A cloud service is used to store payloads that are too large to fit on a tag or don't fit on a tag. This way anyone who scans your tag will see the same actions performed (including you if you mistakenly clear app data or get a new device).
5/1/2013 - 6.0
- New Tablet layout for 7" tablets in landscape and 10" tablets and slight UI tweaks for phone layout.
- Task processing and execution should now be much quicker in most instances and less prone to closing
- Added Chinese localization (Simplified and Traditional)
- SMS now shows the number in the list of actions after adding
- Support for time and date (%t and %d) place holders added to Text to Speech, Tweets, Emails and SMS messages
- Notification light settings updated to respect Samsung specific device settings
- Tweaked lock screen controls to try to offer a more consistent experience. A root plugin will follow in the near future for full control of lock screen settings.
- URLs opened in the background now support users[email protected] format for passing in login credentials
4/10/2013 - 5.0.1
- Free tags has been removed for now. We've run through our stock of free tags quicker than anticipated!
- Notification and Ringer Sound actions should now set the previous
ringtone on failure
- TTS worker will now set the volume up termporarilly if it is
silenced and then back down to the current level when completed
- Continued tweaking of Wifi triggers for better detection of connect/disconnect
- Fixes for setting Brightness on LG devices and some inconsistent behaviors
- All translations can now use WEP, WPA, WPA2 and Open configurations. (64 bit WEP)
- Fixes for reported crashes
- Fix for crash when generating message from setting an alarm
- When adding Close App to a tag a notification is now shown alerting users that root access is needed in most instances
- Support for killing multiple PIDs based on package ownership
4/4/2013 - 5.0
- Start/Stop Drive Agent
- Changes to free tags (posting to social media is now optional)
- Placeholder support for Twitter tweets (%t for time and %d for date). This will be expanded to other text fields as well soon (TTS, Email, SMS, etc).
- 1x1 Widgets. Pick your task, icon and background for 1x1 widgets (also works with switch tasks).
- SIP calling
- Start and Stop Media Playback as separate features
- The NFC restriction has been removed and WiFi / Bluetooth triggers are now available on non NFC devices.
- Importing a tag with no actions should now prompt you to create a task and take you directly into that flow
- Free tags no longer require a tweet. You can fill out the form from the app itself and optionally post to Twitter / Google+ (although we appreciate it if you do!)
Fixes:
- Fixed Wifi Connect not working for tags using SSID only
- Further tweaks to Wifi connect / disconnect (this is still in progress)
- Fixed Russian translation so that disable works on actions
- Fixed a Samsung specific issue regarding Blocking mode
- Fixed an issue with Wifi Hotspot not resuming if Wifi had to be disabled before starting hotspot
- Fixed a potential crash in Free Tags
- Removed WRITE_SECURE_SETTINGS request from GPS action
If you have any issues, questions or suggestions please let me know.
Here's a quick demo I made:
Thanks for the 4.1 update.
But I don't understand or find any setting about this new function:
We've also set up a cloud service to cache this payload for anyone else who taps this tag. They will perform a one time download of the payload and cache it on their device. This way you and anyone else can use any tag without worrying about the size or contents.
Click to expand...
Click to collapse
lwclam said:
Thanks for the 4.1 update.
But I don't understand or find any setting about this new function:
Click to expand...
Click to collapse
There's no setting.
Here's what happens now. Let's say you want to write a message that is 100 bytes, but your tag is read-only or you tag is only 48 bytes. Since the entire message can't be written (or anything written) the payload is mapped locally on your device and keyed on the ID. If we can write to the tag we'll write a small message to aid in filtering.
However this breaks anyone else using this tag as the commands aren't on the tag (boo). To get around this when you write these tags the payload is pushed out to a cloud service we set up that keys on the tag's ID (this happens in the background and transfers very little data, just the size of the payload).
Now, when you scan that tag you use the local mapping.
When anyone else scans this tag NFCTL will see that
1.) it has no data and
2.) their device doesn't have a local mapping for that and will query the server to see if there's a mapping present to use. If it does it will grab that, cache it locally and then execute those actions.
Now when either of you re-scan the tag you're using a cached version of the commands and there's no network transfer or query performed. This also prevents someone else from re-writing your locally mapped tag and changing your actions.
The other benefits this holds is that if you lose your app data all of your tags will still work (the payload will be pulled down on the first tap and cached) and I've leveraged this back end to make sharing tags easier if you want to send someone a tag you've created.
Let me know if that doesn't make sense
Nice idea, but could I suggest that - just for people's peace of mind in a paranoid world - you add an option to make a tag 'private' - i.e. it only gets stored on your own phone, not on the cloud.
There might be odd occasions where you only want something to happen on your own phone, rather than anyone who happens to scan the tag. <Quickly deletes http://www.horny-porny-porn.com from all my tags >
Andre
Would you be opposed to posting the SMS Plugin APK somewhere? Or for private downloading? I've been using it on my Galaxy Nexus and so far so good. I have a messaging app on my Nexus 7 and wanted to see if the SMS feature would work on it as well. However, the Play Store won't let a Nexus 7 download it.
I understand if there are limitations to the app where it can't be installed on a tablet device. Can't hurt to ask.
andrewilley said:
Nice idea, but could I suggest that - just for people's peace of mind in a paranoid world - you add an option to make a tag 'private' - i.e. it only gets stored on your own phone, not on the cloud.
There might be odd occasions where you only want something to happen on your own phone, rather than anyone who happens to scan the tag. <Quickly deletes http://www.horny-porny-porn.com from all my tags >
Andre
Click to expand...
Click to collapse
+1
Sent from my HTC One X using Tapatalk 2
sola fide said:
Would you be opposed to posting the SMS Plugin APK somewhere? Or for private downloading? I've been using it on my Galaxy Nexus and so far so good. I have a messaging app on my Nexus 7 and wanted to see if the SMS feature would work on it as well. However, the Play Store won't let a Nexus 7 download it.
I understand if there are limitations to the app where it can't be installed on a tablet device. Can't hurt to ask.
Click to expand...
Click to collapse
Send me a PM with your email and I'll send it over this weekend.
andrewilley said:
Nice idea, but could I suggest that - just for people's peace of mind in a paranoid world - you add an option to make a tag 'private' - i.e. it only gets stored on your own phone, not on the cloud.
There might be odd occasions where you only want something to happen on your own phone, rather than anyone who happens to scan the tag. <Quickly deletes http://www.horny-porny-porn.com from all my tags >
Andre
Click to expand...
Click to collapse
Maybe Prior to this release all data was encoded on the tags themselves *always*. It still is if there is sufficient space. Portability between devices has been the model since day one. It's something we can discuss though.
Hey, I have programmed a tag to check in at foursquare but when I use it, it opens NFC task launcher instead of FS, why? If anyone uses it, it opens NFC, not the check-in.
Sent from my HTC One X using xda premium
abejoker said:
Hey, I have programmed a tag to check in at foursquare but when I use it, it opens NFC task launcher instead of FS, why? If anyone uses it, it opens NFC, not the check-in.
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
NFC Task Launcher uses Foursquare's API to check you in in the background (it will need to do a one time authorization).
Not sure if I'm the only one but the switch mode sometimes takes forever to complete the 3-5 specified actions upon activation. Just before the last update, the actions complete within 2 seconds or less but now, it can take up to a minute or more. Even Android prompts up to 2 times for whether to kill the non responding NFCTL and I had to select wait each time. Since the root access toast message appear just when the actions are executed, it suggests that the waiting time is just the application trying to figure out what are to be executed. My guess is that it might be that the caching/syncing/downloading is bugged and my phone is downloading the actions from server every time instead of just once. The server may also be overloaded or slow to respond so it takes forever to re-download the actions to be performed on every scan of the tag.
Switching action 1
- Enable desktop dock
- Disable vibration during ring
- Disable lock screen
Switching action 2
- Disable desktop dock
- Disable auto rotate
- Enable vibration during ring
- Enable lock screen
- Close applciation (Navigation)
On my old phone I had similar issues with another app and thought that because the toast messages were coming slow that it must be a problem with the app. I then decided to disable the toast messages and found that they were actually the source of the lag. It may be something to try with troubleshooting your issue.
~Nexus S 4G~AOKP JB~Matrix 24.0~
matthewchng said:
Not sure if I'm the only one but the switch mode sometimes takes forever to complete the 3-5 specified actions upon activation. Just before the last update, the actions complete within 2 seconds or less but now, it can take up to a minute or more. Even Android prompts up to 2 times for whether to kill the non responding NFCTL and I had to select wait each time. Since the root access toast message appear just when the actions are executed, it suggests that the waiting time is just the application trying to figure out what are to be executed. My guess is that it might be that the caching/syncing/downloading is bugged and my phone is downloading the actions from server every time instead of just once. The server may also be overloaded or slow to respond so it takes forever to re-download the actions to be performed on every scan of the tag.
Switching action 1
- Enable desktop dock
- Disable vibration during ring
- Disable lock screen
Switching action 2
- Disable desktop dock
- Disable auto rotate
- Enable vibration during ring
- Enable lock screen
- Close applciation (Navigation)
Click to expand...
Click to collapse
It's not a query issue. If you wrote the tag and the entire message fits on the tag it's written to the tag. If it doesn't it's cached locally. There's no query. If you didn't write the tag and it's a tag that had to be pushed to the cloud you do a one time query and then cache the instruction set. Subsequent attempts to execute that tag use the cached payload. Unless you ended up with an unwritable database (in which case tags wouldn't save either when you created them) there's no reason it would re-query on every scan.
Enable debugging in the app, scan the tag and send me the generated log.
krohnjw said:
It's not a query issue. If you wrote the tag and the entire message fits on the tag it's written to the tag. If it doesn't it's cached locally. There's no query. If you didn't write the tag and it's a tag that had to be pushed to the cloud you do a one time query and then cache the instruction set. Subsequent attempts to execute that tag use the cached payload. Unless you ended up with an unwritable database (in which case tags wouldn't save either when you created them) there's no reason it would re-query on every scan.
Enable debugging in the app, scan the tag and send me the generated log.
Click to expand...
Click to collapse
I was using a read only tag. In any case, just did another test without even using a tag. Used the widget to switch between the 2 available modes. Put phone in Airplane mode but still get that long delay issue so that rules out server issues. The actions were executed successfully as long as I keep selecting "wait" when Android prompt to kill NFCTL multiple times. What can I do that can provide you with the info to track down the root of the problem?
matthewchng said:
I was using a read only tag. In any case, just did another test without even using a tag. Used the widget to switch between the 2 available modes. Put phone in Airplane mode but still get that long delay issue so that rules out server issues. The actions were executed successfully as long as I keep selecting "wait" when Android prompt to kill NFCTL multiple times. What can I do that can provide you with the info to track down the root of the problem?
Click to expand...
Click to collapse
What device is this on? Enable debugging, scan the tag and send me the log.
krohnjw said:
What device is this on? Enable debugging, scan the tag and send me the log.
Click to expand...
Click to collapse
Attached. Just activated one action from the widget.
Version: 4.1.1
OS: 4.2
Galaxy Nexus
matthewchng said:
Attached. Just activated one action from the widget.
Version: 4.1.1
OS: 4.2
Galaxy Nexus
Click to expand...
Click to collapse
ANR from running the root command for dock mode. It's taking 4+ seconds before returning and broadcasting. I'll pull it into a background task like other root operations.
PM me an email address and I can send a test build in a bit.
krohnjw said:
ANR from running the root command for dock mode. It's taking 4+ seconds before returning and broadcasting. I'll pull it into a background task like other root operations.
PM me an email address and I can send a test build in a bit.
Click to expand...
Click to collapse
That was 4 minutes. Not 4 seconds... 10:02pm started but finished at 10:06pm. Email to my username @gmail.com.
matthewchng said:
That was 4 minutes. Not 4 seconds... 10:02pm started but finished at 10:06pm. Email to my username @gmail.com.
Click to expand...
Click to collapse
Reading is a key skill ANR's should pop after 5 seconds of an unresponsive UI thread.
Are you getting the prompt for root access?
krohnjw said:
Reading is a key skill ANR's should pop after 5 seconds of an unresponsive UI thread.
Are you getting the prompt for root access?
Click to expand...
Click to collapse
Already granted and saved before so no more prompt. But I do get the Android prompt asking if I want to kill an unresponsive process to which I just kept selecting wait. . Let me get a screen capture of the prompt.
The action will eventually be completed given enough time.

Help: Send intents from Llama to Tasker

I like Llama's location services much better than Tasker's. I see that Llama has a send intent action. I'd like to be able to have Llama send an intent to Tasker, so that when Llama senses a new area, it will change my "%Location" variable in Tasker to "Car," "Home," "Work," etc. I have no idea what to do with the create intent screen though. Does it matter what I put in the intent boxes on Llama, or do I just make them up? There are boxes on Llama for "Intent Send Mode," "Package Name," "Class Name," "Action," "Categories," "Data," and "Data Type" on Llama. Under the "Intent Received" condition in Tasker, it has "Action," "Cat" (x2), "Scheme," "Mime Type," and "Priority." The only ones I see that lines up between the two are Action and Categories. Do I just type something matching into Action on both to make it work? I really don't get intents, even though I've tried to read multiple guides on them.
Meriwether_R said:
I like Llama's location services much better than Tasker's. I see that ...
Click to expand...
Click to collapse
I am wanting my Llama to interact with Tasker, as well, Meriwether. Specifically, I am wanting it to launch tasks from Tasker when it detects a location/time change; I've noticed that on my device (VZW G Note 3 4.4.4), Tasker's tasks seem to play nicer than my Llama's tasks with my phone's configuration and settings.
I've come across Llama's guide on using intents within the app, herehttp://kebabapps.blogspot.com/2011/07/android-intents-aka-widget-locker.html?m=1, and Tasker's intent guide here http://tasker.dinglisch.net/userguide/en/intents.html. After reading through them, I am still confused.
I'm going to peruse the Android SDK expansion of intents again (linked in the aforementioned Tasker link near the top), and maybe I'll grasp a concept or two that I didn't catch the first time.

[APP]Samsung TV Remote for Tasker

Hi guys,
I'm currently building an action plugin for Tasker that gives me a possibility to control my Samsung F-serie TV from Tasker tasks.
Everything is working well on my TV but I would like to know how this plugin behaves on C, D and E serie of Samsung TVs.
Is there anyone who would be interested in trying this out and let me know if and how it works?
First thing to do after installation is to open app from drawer and put your TVs ip address and save configuration. Depending on what TV you have you may see connection approval popup on your TV after you press "save configuration". You must accept this connection request for the plugin to work.
Next step is to create a new task in Tasker and for example choose "channel", put a channel number you would like to see in the field and save plugin config.
You should now be able to run your task manually and your TV should switch to a choosen channel.
Thanks.
DarenJ said:
Hi guys,
I'm currently building an action plugin for Tasker that gives me a possibility to control my Samsung F-serie TV from Tasker tasks.
Everything is working well on my TV but I would like to know how this plugin behaves on C, D and E serie of Samsung TVs.
Is there anyone who would be interested in trying this out and let me know if and how it works?
First thing to do after installation is to open app from drawer and put your TVs ip address and save configuration. Depending on what TV you have you may see connection approval popup on your TV after you press "save configuration". You must accept this connection request for the plugin to work.
Next step is to create a new task in Tasker and for example choose "channel", put a channel number you would like to see in the field and save plugin config.
You should now be able to run your task manually and your TV should switch to a choosen channel.
Thanks.
Click to expand...
Click to collapse
Hi, I've got an older Samsung TV, it's a 2011 I believe. A model: PN51D6500DFXZA. I'm not sure what series that belongs to.
Anyway, I installed the plugin and yes my TV reacted to it. However when I tried to set up a menu to switch between the different HDMI inputs it didn't work quite right. I set up separate buttons for HDMI 1-3 (KEY-HDMI1 - KEY-HDMI3) and a 4 switch which was just KEY-HDMI with no number, which turned out to be the only one that worked. (It just goes from one active HDMI channel to another)
If you want more specific info just let me know. Be warned though, I just started learning Tasker yesterday.
I hope this is an on-going project for you, I'd love to be able to integrate this into something super cool!

Categories

Resources