• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

com.twofortyfouram in code

afjean

Lurker
I have been looking at the code tasker creates when I make a task in the app. At tne bottom is always the following: <com.twofortyfouram.locale.intent.extra.BLURB><send alert> etc..
What does this code do?
 
I have been looking at the code tasker creates when I make a task in the app. At tne bottom is always the following: <com.twofortyfouram.locale.intent.extra.BLURB><send alert> etc..
What does this code do?

Its a package name.
 
More specifically, it's the package name for another (compatible) automation app: Locale. A lot of plugins for one will work with the other, so it may be using that identifier to handle the integration.
 
Thanks for your help. I have been trying to learn by looking at all the code that tasker writes when I create profiles and tasks. That portion of code is in all the exported xml files. When you write your own tasks with xml code rather than the tasker interface, do you need to include this section? I did a search for twofourforty in several forums. There were hundreds of hits but they were all where someone posted snippets of their code wanting help. Were they posting tasker generated code or their own? If you imported your own code into tasker, when tasker compiles it (? or whatever it does with it) do you think tasker adds this in? Thanks afjean
 
Thanks for your help. I have been trying to learn by looking at all the code that tasker writes when I create profiles and tasks. That portion of code is in all the exported xml files. When you write your own tasks with xml code rather than the tasker interface, do you need to include this section? I did a search for twofourforty in several forums. There were hundreds of hits but they were all where someone posted snippets of their code wanting help. Were they posting tasker generated code or their own? If you imported your own code into tasker, when tasker compiles it (? or whatever it does with it) do you think tasker adds this in? Thanks afjean

To be honest, I've never tried writing a Tasker profile from scratch using XML and importing that in - I'd be a bit afraid to try, as I know some things (namely any references to external profiles or tasks) are assigned numerical values in the XML and it could be tough to get those to match up when going back and forth. Tasker's interface can be quite clunky, but I think it's the best (and safest) route of creating profiles.
 
Thanks for the prudent advice. I have experimented with exporting the code and adding xml comments so that later I can remember what I did to create the profile. I didnt alter the actual code in any way. It is a little tedious to import them in again and delete the original but I am learning and the notes help. I have also tried just keeping a text file with the same profile comments. That works too.
My original post was an interest in what the following snippet of code does. I used a Pebble Taskwatch plugin to alert my pebble when an mms arrives. There is a whole section of code that relates to taskwatch. Then immediately following is this code:

<com.twofortyfouram.locale.intent.extra.BLURB>Send alert</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.

The taskwatch code to send an alert has already executed, so I wondered where this alert is going. Any ideas. Good day to all. Afjean
 
Back
Top Bottom