Go Back   Android Forums > Android Discussion > Android Applications > Tasker

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

Like Tree15Likes

test: Reply
 
LinkBack Thread Tools
Old September 11th, 2012, 02:28 PM   #1 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default [Profile] [front Camera] Photo/email image of device intruder

This is a mid-level complexity profile that takes a photo of someone who incorrectly enters your pattern lock (in this example) twice and emails it to you.

This is based on multiple examples found but this is my own spin on it.

The filename of the photo is always the same so it overwrites itself, saving space because if, like me, you often put your pattern in wrong, you'll end up with a million pictures of yourself

Pre-requsites:
  1. SL4a apk - android-scripting.googlecode.com
  2. Secure settings - Google Play
  3. Folder \sdcard\sl4a\scripts containing - sendemailA.py
  4. Python - Install through SL4a as below:





    I have attached the profile exported xml, in a zip. Put this (extracted) in /sdcard/tasker/profiles/. You will still need to do the above and add your email address and password to the tasks below though, but should save some time. UNTESTED
Creating the profile:

Profile
  • Add (+) Profile, name "Intrusion"
Context
  • Select State > Plugin > Secure Settings > configuration Edit > Failed Login Attempts > (set your number, Tick "Device admin" and save
Task
  • New Task
  • + Media > Take Photo > Camera "Front" > Filename "Last-intruder" (and apply)
  • + Variable > Variable Set > name "%EMAIL_USER" to youremailaddress@here.com
  • + Variable > Variable Set > name "%EMAIL_PSWD" to youremailpassword
  • + Variable > Variable Set > name "%EMAIL_TO" to youremailaddress@here.com
  • + Variable > Variable Set > name "%EMAIL_SUBJECT" to "SGS3 INTRUSION ATTEMPT"
  • + Variable > Variable Set > name "%EMAIL_ATTACH" to "/sdcard/DCIM/Tasker/last-intruder.jpg"
  • + Script > Run SL4A Script > Name (Search icon) sendemailA.py > Pass variables " %EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_ATTACH,%E MAIL_SUBJECT "
  • Apply

Attached Files
File Type: zip profiles.zip (1.0 KB, 255 views)

SUroot is offline  
Last edited by SUroot; September 21st, 2012 at 04:48 PM.
Reply With Quote
The Following 17 Users Say Thank You to SUroot For This Useful Post:
AndroidHaCks (July 14th, 2013), biggoog2003 (September 11th, 2012), D-U-R-X (May 12th, 2013), davoid (September 11th, 2012), El Presidente (September 13th, 2012), Incognegro8290 (October 24th, 2013), JoshuaJones (November 4th, 2012), madkad (January 7th, 2013), MaxPower1 (September 21st, 2012), mrhomiec (September 11th, 2012), nflo671 (December 2nd, 2013), Rachel A (September 11th, 2012), silentwitness (December 9th, 2012), TauntingBull (May 12th, 2013), titan2005 (October 8th, 2013), Tyseyh (September 21st, 2012), XplosiV (September 16th, 2012)
sponsored links
Old September 11th, 2012, 02:44 PM   #2 (permalink)
Senior Member
 
Rachel A's Avatar
 
Join Date: Aug 2010
Location: In front of my S3
Gender: Female
Posts: 2,459
 
Device(s): VZW GS3 4.0.4 Rooted, Droid Incredible (Retired) , Motorola Xoom 4.0.4 (Unrooted)
Carrier: Not Provided

Thanks: 607
Thanked 869 Times in 637 Posts
Default

Nice job there SU! I've been trying to piece this together for a while, and here it is, all in one easily digestible chunk!

One question: is SL4a installed as standard now? I have it on my tasker but cannot recollect if I installed it separately.

Thanks!
__________________
If I helped you then please consider thanking me. A thanks produces lots of warm and fuzzies and is cheaper and easier than buying me a round of booze.
Rachel A is offline  
Reply With Quote
The Following User Says Thank You to Rachel A For This Useful Post:
SUroot (September 11th, 2012)
Old September 11th, 2012, 02:48 PM   #3 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Hmm I'm not sure. I've had this a while now and updated a few tasker versions. I had to install it but I cannot say whats included now.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
Rachel A (September 11th, 2012)
Old September 11th, 2012, 03:34 PM   #4 (permalink)
Member
 
Flumme's Avatar
 
Join Date: Jun 2011
Location: Sweden
Posts: 333
 
Device(s): HTC Desire (retired), Samsung Galaxy S3
Carrier: Not Provided

Thanks: 97
Thanked 87 Times in 63 Posts
Default

Quote:
Originally Posted by Rachel A View Post

One question: is SL4a installed as standard now? I have it on my tasker but cannot recollect if I installed it separately.

Thanks!
Yes, it's installed as you install Tasker.
__________________
Flashing is indecent fun

Free 2 + 0,5 Gb Dropbox: http://db.tt/U3UgMIRc
Flumme is offline  
Reply With Quote
The Following User Says Thank You to Flumme For This Useful Post:
SUroot (September 11th, 2012)
Old September 11th, 2012, 03:37 PM   #5 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Thanks guys. Reworded but left the link for reference.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
Rachel A (September 11th, 2012)
Old September 11th, 2012, 04:41 PM   #6 (permalink)
Member
 
Flumme's Avatar
 
Join Date: Jun 2011
Location: Sweden
Posts: 333
 
Device(s): HTC Desire (retired), Samsung Galaxy S3
Carrier: Not Provided

Thanks: 97
Thanked 87 Times in 63 Posts
Default

Quote:
Originally Posted by Flumme View Post
Yes, it's installed as you install Tasker.
I'm sorry.

On closer inspection, it is not installed as a part of Tasker, I jumped to conclusions...
Flumme is offline  
Reply With Quote
Old September 11th, 2012, 07:01 PM   #7 (permalink)
Senior Member
 
mrhomiec's Avatar
 
Join Date: May 2010
Location: Arizona
Gender: Male
Posts: 528
 
Device(s): Droid 1, Galaxy Nexus, Galaxy S3
Carrier: Not Provided

Thanks: 67
Thanked 71 Times in 50 Posts
Default

So I'm trying to figure out how to move the snapped picture, but don't know how to go about this.

Trying to setup a new profile, I found event > file > file attribute change, file deleted, file moved, file closed, file modified, and file opened.

Was thinking file modified, but it asked for a specific file name. But I have the snap picture name the file chronologically.

Any suggestions?
__________________
Nintendo 3DS Friend Code, PM if you add me.
================================================== ===========================THANKS
================================================== ==============================| |
================================================== ==============================| |
================================================== ============================== V
mrhomiec is offline  
Reply With Quote
Old September 11th, 2012, 10:08 PM   #8 (permalink)
Senior Member
 
davoid's Avatar
 
Join Date: Aug 2011
Location: London
Posts: 1,640
 
Device(s): Galaxy SIII
Carrier: 3UK

Thanks: 610
Thanked 568 Times in 432 Posts
Default

This is great! I'm going to try this out.

Do the folders with path /sdcard need to be on the internal memory?
I was wondering because of the /sdcard/DCIM/Tasker/ path for the photo; does Tasker save photos here by default? Asking because my DCIM folder is on extSdcard.

I'm assuming the /scripts folder will need to be on /sdcard.
davoid is online now  
Reply With Quote
Old September 12th, 2012, 12:53 AM   #9 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Quote:
Originally Posted by mrhomiec View Post
So I'm trying to figure out how to move the snapped picture, but don't know how to go about this.

Trying to setup a new profile, I found event > file > file attribute change, file deleted, file moved, file closed, file modified, and file opened.

Was thinking file modified, but it asked for a specific file name. But I have the snap picture name the file chronologically.

Any suggestions?
If you prefix the filename, can you use a wildcard?
SUroot is offline  
Reply With Quote
Old September 12th, 2012, 12:55 AM   #10 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Quote:
Originally Posted by davoid View Post
This is great! I'm going to try this out.

Do the folders with path /sdcard need to be on the internal memory?
I was wondering because of the /sdcard/DCIM/Tasker/ path for the photo; does Tasker save photos here by default? Asking because my DCIM folder is on extSdcard.

I'm assuming the /scripts folder will need to be on /sdcard.
Mine too. No it defaults here. Tasker (like many apps) does not know about extSdCard. Cannot find a setting.

This profile will keep a maximum of 1 image there
SUroot is offline  
Reply With Quote
sponsored links
Old September 12th, 2012, 08:44 AM   #11 (permalink)
Senior Member
 
mrhomiec's Avatar
 
Join Date: May 2010
Location: Arizona
Gender: Male
Posts: 528
 
Device(s): Droid 1, Galaxy Nexus, Galaxy S3
Carrier: Not Provided

Thanks: 67
Thanked 71 Times in 50 Posts
Default

Quote:
Originally Posted by SUroot View Post
If you prefix the filename, can you use a wildcard?
it didn't work.

i named the photo "tried" with the chronological setting. this names the files "tried.2012-09-12-06-44.jpg" then in the file move profile, i tried to identify it with "tried.*.jpg" and "tried.*" and when testing via failed unlock and trying to press the play button, it didn't work.

however from pressing the play button, i was able to see an error "file does not exist". so it sounds like it has to be an exact match.

i also tried to just in general pay attention to the /Tasker/ folder, and still the same results.
mrhomiec is offline  
Reply With Quote
Old September 12th, 2012, 11:11 AM   #12 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

You may need to write the file name to a variable or something
SUroot is offline  
Reply With Quote
Old September 12th, 2012, 10:28 PM   #13 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by SUroot View Post
This is a mid-level complexity profile that takes a photo of someone who incorrectly enters your pattern lock (in this example) twice and emails it to you.

This is based on multiple examples found but this is my own spin on it.

The filename of the photo is always the same so it overwrites itself, saving space because if, like me, you often put your pattern in wrong, you'll end up with a million pictures of yourself

Pre-requsites:

  1. SL4a apk - android-scripting.googlecode.com - This should now come with Tasker.
  2. Secure settings - Google Play
  3. Folder \sdcard\sl4a\scripts containing - sendemailA.py
  4. Python - Install through SL4a as below:



Creating the profile:


Profile
  • Add (+) Profile, name "Intrusion"
Context
  • Select State > Plugin > Secure Settings > configuration Edit > Failed Login Attempts > (set your number, Tick "Device admin" and save
Task
  • New Task
  • + Media > Take Photo > Camera "Front" > Filename "Last-intruder" (and apply)
  • + Variable > Variable Set > name "%EMAIL_USER" to youremailaddress@here.com
  • + Variable > Variable Set > name "%EMAIL_PSWD" to youremailpassword
  • + Variable > Variable Set > name "%EMAIL_TO" to youremailaddress@here.com
  • + Variable > Variable Set > name "%EMAIL_SUBJECT" to "SGS3 INTRUSION ATTEMPT"
  • + Variable > Variable Set > name "%EMAIL_ATTACH" to "/sdcard/DCIM/Tasker/last-intruder.jpg"
  • + Script > Run SL4A Script > Name (Search icon) sendemailA.py > Pass variables "%EMAIL_TO,%EMAIL_ATTACH,%EMAIL_SUBJECT"
  • Apply
Takes pic sends to my drop box but does not send me an email??Followed all the steps ?????
biggoog is online now  
Reply With Quote
Old September 13th, 2012, 01:32 AM   #14 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Does the send email script run? In the status bar?




Does the sendemail python script show up in the sl4a app?

SUroot is offline  
Reply With Quote
Old September 13th, 2012, 01:47 PM   #15 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Attached an export of the profiles in post1
SUroot is offline  
Reply With Quote
Old September 13th, 2012, 08:48 PM   #16 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by SUroot View Post
Does the send email script run? In the status bar?
I dot have a sl4a APP????




Does the sendemail python script show up in the sl4a app?

No it does not show up in status bar. 2 it shows up in my scripts.
biggoog is online now  
Last edited by biggoog; September 13th, 2012 at 09:00 PM. Reason: add info!!
Reply With Quote
Old September 14th, 2012, 05:08 AM   #17 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Please provide a screen shot of your tasks.
biggoog likes this.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
biggoog (September 14th, 2012)
Old September 14th, 2012, 06:18 AM   #18 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

I used the profile you loaded in the first post.
biggoog is online now  
Last edited by biggoog; September 14th, 2012 at 08:40 AM.
Reply With Quote
Old September 14th, 2012, 06:20 AM   #19 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by biggoog View Post
I used the profile you loaded in the first post.
Guess I got the change my password. Lol.
SUroot and davoid like this.
biggoog is online now  
Reply With Quote
Old September 14th, 2012, 08:05 AM   #20 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

So email user (task 2) doesn't have an @gmail.com or whatever on the end.

Take those pictures down if i were you.....
biggoog likes this.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
biggoog (September 14th, 2012)
sponsored links
Old September 14th, 2012, 08:42 AM   #21 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by SUroot View Post
So email user (task 2) doesn't have an @gmail.com or whatever on the end.

Take those pictures down if i were you.....
Removed Pic Thank you.
I read the Sl4A tuturial and it said not to put the @gmail.com because it wlould use @gmail.com atuomaticly.
I had it there at first it still did not work??
biggoog is online now  
Last edited by biggoog; September 14th, 2012 at 08:45 AM. Reason: type o
Reply With Quote
Old September 14th, 2012, 09:14 AM   #22 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

It's the only difference I see.

If you press sendemailA.py from sl4a, do you get icon in status bar?
SUroot is offline  
Reply With Quote
Old September 14th, 2012, 10:15 AM   #23 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by SUroot View Post
It's the only difference I see.

If you press sendemailA.py from sl4a, do you get icon in status bar?
i dont have a sl4a App. sl4a was alreadry installed on my version of tasker. Where do i press sendemailA.py ????
biggoog is online now  
Reply With Quote
Old September 14th, 2012, 10:36 AM   #24 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by biggoog View Post
i dont have a sl4a App. sl4a was alreadry installed on my version of tasker. Where do i press sendemailA.py ????
download sl4a app. file is there when i try to run it from app or tasker i get this:
"Sorry!
The application SL$A(process com.googlecode.android_scripting) has stopped unexpectedly. Please try again."
Wont let me take a screen shot of that screen. Looks like a System error???
Edit:
1. Downloaded sl4a app installed 2. Installed python 3. Added @gmail.com to email.
4. WORKING like a charm.
Thanks a lot SUroot for all the help anf feed back.
biggoog is online now  
Last edited by biggoog; September 14th, 2012 at 11:16 AM. Reason: Problem solved Thanks to SUroot.
Reply With Quote
Old September 14th, 2012, 10:48 AM   #25 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

In the app, you need to install the python interpreter as per post 1, prerequisite 4
biggoog likes this.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
biggoog (September 15th, 2012)
Old September 15th, 2012, 08:39 AM   #26 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by SUroot View Post
In the app, you need to install the python interpreter as per post 1, prerequisite 4
I seen that. Buy didn't see where duh! Found. Thanks
biggoog is online now  
Reply With Quote
Old September 15th, 2012, 08:59 AM   #27 (permalink)
Member
 
biggoog's Avatar
 
Join Date: Jan 2012
Location: Detroit Michigan
Gender: Male
Posts: 100
 
Device(s): Samsung Galaxy S3 BlackBean#6 and CyaongenMod 10 Nightly d2mtr- LG-Esteem OC@1.9 ROM#2
Carrier: Metro PCS

Thanks: 131
Thanked 12 Times in 11 Posts
Default

For those of you who likes to save battery and you have data off, the sendemail will fail if data is off and you will not receive an email. Here's what I did. Tested it and it works for ME!
You can adjust the wait time and some may not need to have that task. For me it takes a few seconds to bring data up.
I added task 2, 3, & 10
Attached Images
File Type: jpg uploadfromtaptalk1347717487902.jpg (57.1 KB, 59 views)
File Type: jpg uploadfromtaptalk1347717513574.jpg (59.3 KB, 48 views)
biggoog is online now  
Reply With Quote
The Following 2 Users Say Thank You to biggoog For This Useful Post:
SUroot (September 15th, 2012), Tyseyh (September 21st, 2012)
Old September 15th, 2012, 09:18 AM   #28 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Yeah data always takes a couple of seconds to establish a connection so a wait will be needed.
biggoog likes this.
SUroot is offline  
Reply With Quote
Old September 21st, 2012, 02:53 PM   #29 (permalink)
Senior Member
 
Tyseyh's Avatar
 
Join Date: Jun 2010
Location: Leeds, UK
Gender: Male
Posts: 2,028
 
Device(s): HTC Desire, Sony Xperia S ( Black )
Carrier: Not Provided

Thanks: 339
Thanked 298 Times in 221 Posts
Default

i keep getting USER_EMAIL Missing.
I have checked and double checked, no extra spaces at the end of the email address for example, the address is correct, any ideas?
Tyseyh is offline  
Reply With Quote
Old September 21st, 2012, 04:29 PM   #30 (permalink)
Junior Member
 
Join Date: Jan 2011
Posts: 29
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 2 Times in 2 Posts
Default

I got it to work but I have to say, the instructions were a bit confusing. SL4A doesn't come with Tasker, I had to download it from the link since it's not on the Play Store either. Once I have SL4A installed, I opened it, and installed Python, I had to open Python and click on the install button. It downloaded and extracted some files, IDK what they were. Then I set up the email client on my phone and linked it to my Google account (I'm not sure it that was necessary or if the Gmail app would have been enough).

After I did all that it still didn't work. I went into Tasker and opened the Task and pressed the play button, I got a "EMAIL_USER missing". I had to edit this:

+ Script > Run SL4A Script > Name (Search icon) sendemailA.py > Pass variables "%EMAIL_TO,%EMAIL_ATTACH,%EMAIL_SUBJECT"

into this:

+ Script > Run SL4A Script > Name (Search icon) sendemailA.py > Pass variables "%EMAIL_USER,%EMAIL_PSWD, %EMAIL_TO,%EMAIL_ATTACH,%EMAIL_SUBJECT"

And that worked.
SUroot likes this.
MaxPower1 is offline  
Reply With Quote
The Following User Says Thank You to MaxPower1 For This Useful Post:
SUroot (September 21st, 2012)
sponsored links
Old September 21st, 2012, 04:51 PM   #31 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Thanks

Yes you're right I missed two variables when I copied the text (you know you simply could have imported the profiles right? The steps are not so relevant now.)

I too had to install sl4a but a couple of people in the first few posts said it now came with tasker. Amended back.

There is a link that explains how to install interpreters (such as python). I am not responsible for its content however.
SUroot is offline  
Reply With Quote
Old September 21st, 2012, 05:24 PM   #32 (permalink)
Senior Member
 
Tyseyh's Avatar
 
Join Date: Jun 2010
Location: Leeds, UK
Gender: Male
Posts: 2,028
 
Device(s): HTC Desire, Sony Xperia S ( Black )
Carrier: Not Provided

Thanks: 339
Thanked 298 Times in 221 Posts
Default

Aye I saw I could off, but I don't know anything about variables so I thought I'd follow the instructions.


Edit - email now works, picture isn't attached though.
Tyseyh is offline  
Last edited by Tyseyh; September 21st, 2012 at 05:35 PM.
Reply With Quote
Old September 21st, 2012, 05:54 PM   #33 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Need tasker screenshots if you need help. Blank out email address and password first though. I assume the information in those fields is correct
SUroot is offline  
Reply With Quote
Old September 21st, 2012, 06:17 PM   #34 (permalink)
Junior Member
 
Join Date: Jan 2011
Posts: 29
 
Device(s):
Carrier: Not Provided

Thanks: 8
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by SUroot View Post
Thanks

Yes you're right I missed two variables when I copied the text (you know you simply could have imported the profiles right? The steps are not so relevant now.)

I too had to install sl4a but a couple of people in the first few posts said it now came with tasker. Amended back.

There is a link that explains how to install interpreters (such as python). I am not responsible for its content however.
I did see the link to download the profile but it says it's untested so I figured I'd do it manually. It was better that way because I learned a few things along the way
SUroot likes this.
MaxPower1 is offline  
Reply With Quote
Old September 21st, 2012, 08:22 PM   #35 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

Quote:
Originally Posted by MaxPower1 View Post
I did see the link to download the profile but it says it's untested so I figured I'd do it manually. It was better that way because I learned a few things along the way

Of course, testers are always welcome too

If anyone has successfully tested, I can remove the "untested"
SUroot is offline  
Reply With Quote
Old September 22nd, 2012, 11:53 AM   #36 (permalink)
Senior Member
 
Tyseyh's Avatar
 
Join Date: Jun 2010
Location: Leeds, UK
Gender: Male
Posts: 2,028
 
Device(s): HTC Desire, Sony Xperia S ( Black )
Carrier: Not Provided

Thanks: 339
Thanked 298 Times in 221 Posts
Default

I did it, i made a stupid mistake,turns out in the%EMAIL_ATTACH field, then /Sd/etc etc i had another %EMAIL_ATTACH in there..

can't believe i didn't even notice!
Tyseyh is offline  
Reply With Quote
Old September 22nd, 2012, 12:05 PM   #37 (permalink)
Senior Member
 
qandres12's Avatar
 
Join Date: Jun 2012
Gender: Male
Posts: 1,352
 
Device(s): Samsung Admire (Retired), LG Motion 4G
Carrier: MetroPCS

Thanks: 14
Thanked 219 Times in 170 Posts
Default

what if you dont want it to overwrite the last pic each time a new pic is taken?
qandres12 is offline  
Reply With Quote
Old September 22nd, 2012, 12:59 PM   #38 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,337
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 776
Thanked 338 Times in 301 Posts
Default

You would rename (move) the picture before saving the new one. It gets complicated if you want to save more than two.
__________________
My Eris apps
bberryhill0 is offline  
Reply With Quote
Old September 22nd, 2012, 06:16 PM   #39 (permalink)
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default

There are guides to this. I left it out because there would be hundreds of pictures of me. Still is mind. In my mailbox
SUroot is offline  
Reply With Quote
Old October 25th, 2012, 09:55 AM   #40 (permalink)
Senior Member
 
GTurn's Avatar
 
Join Date: Apr 2012
Location: Dallas, TX
Gender: Male
Posts: 601
 
Device(s):
Carrier: metro

Thanks: 122
Thanked 91 Times in 71 Posts
Default

Works perfectly on my esteem. Thanks.
GTurn is offline  
Reply With Quote
sponsored links
Old December 2nd, 2012, 04:14 AM   #41 (permalink)
New Member
 
Join Date: Nov 2012
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default snapping doesn't work

Hi there. My profile is almost the same except that the picture uploads itself by using Dropbox. My problem is that my HTC One X doesn't take a picture when I use pattern lock even though I use the same setup as you. So I was thinking, do you have a solution?
Fuzie is offline  
Last edited by Fuzie; December 2nd, 2012 at 04:44 AM.
Reply With Quote
Old December 9th, 2012, 01:54 PM   #42 (permalink)
Senior Member
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 940
 
Device(s): Samsung Galaxy s4 GT I9500 and Acer iconia Tab A500
Carrier: Vodafone India

Thanks: 241
Thanked 231 Times in 198 Posts
Default

hey i am just curious this would only work with pattern unlock and not pin lock right?
silentwitness is offline  
Reply With Quote
Old December 9th, 2012, 01:55 PM   #43 (permalink)
Senior Member
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 940
 
Device(s): Samsung Galaxy s4 GT I9500 and Acer iconia Tab A500
Carrier: Vodafone India

Thanks: 241
Thanked 231 Times in 198 Posts
Default

@Fuzie do u have secure settings and secure settings helper installed?
silentwitness is offline  
Reply With Quote
Old December 9th, 2012, 02:16 PM   #44 (permalink)
New Member
 
Join Date: Nov 2012
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by silentwitness View Post
@Fuzie do u have secure settings and secure settings helper installed?
my phone is not rooted so i think that's the problem. Your Phone have to be rooted before you can install the helper.
Fuzie is offline  
Reply With Quote
Old December 9th, 2012, 02:17 PM   #45 (permalink)
New Member
 
Join Date: Nov 2012
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by silentwitness View Post
hey i am just curious this would only work with pattern unlock and not pin lock right?
i'm currently using it with pin so it's not just for patternlock. it depends on the settings you make in secure settings I think
Fuzie is offline  
Reply With Quote
Old December 9th, 2012, 02:32 PM   #46 (permalink)
Senior Member
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 940
 
Device(s): Samsung Galaxy s4 GT I9500 and Acer iconia Tab A500
Carrier: Vodafone India

Thanks: 241
Thanked 231 Times in 198 Posts
Default

i dont think it works with pin i have it setup it only works when i set a pattern and not a pin
silentwitness is offline  
Reply With Quote
Old December 10th, 2012, 02:07 AM   #47 (permalink)
New Member
 
Join Date: Nov 2012
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by silentwitness View Post
i dont think it works with pin i have it setup it only works when i set a pattern and not a pin
Sounds like it depends on the phone now, is your phone tooted? now i really just want to know, because i would love to have it work with pattern too!
Fuzie is offline  
Reply With Quote
Old December 10th, 2012, 07:22 AM   #48 (permalink)
Senior Member
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 940
 
Device(s): Samsung Galaxy s4 GT I9500 and Acer iconia Tab A500
Carrier: Vodafone India

Thanks: 241
Thanked 231 Times in 198 Posts
Default

i am using the galaxy s3 rooted running omega rom 4.1.2 and it does not work with the pin lock only with pattern.
silentwitness is offline  
Reply With Quote
Old December 10th, 2012, 07:37 AM   #49 (permalink)
New Member
 
Join Date: Nov 2012
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

that explains why u can use the pattern. I still can't figure out why you can't use pin option. doulbe checked that you are not using keyguard instead of pin?
Fuzie is offline  
Reply With Quote
Old December 10th, 2012, 01:07 PM   #50 (permalink)
Senior Member
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 940
 
Device(s): Samsung Galaxy s4 GT I9500 and Acer iconia Tab A500
Carrier: Vodafone India

Thanks: 241
Thanked 231 Times in 198 Posts
Default

im using pin option in the s3 but i dont think its supported
silentwitness is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:25 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.