yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] hagure:
Launching Handcent's Quick Compose feature. (via intents?)

What's up fellow Taskers!

I've been trying to figure out for a while now how to create a Task

that will launch the Quick Compose feature of Handcent.

Normally, it is accessed by long pressing the search button, but I

have also been able to bring it up in Launcher Pro utilizing it's "Activity"

shortcut. Here's what that looks like in the LP config file:

<string>intent:#Intent;action=android.intent.action.MAIN;component=com.handcent.nextsms/
com.handcent.sms.ui.HcQuickComposeActivity;end</string>

I looked through Handcent's manifest.xml and found this:

<activity android:theme="@android:style/Theme.Dialog"
android:label="@string/menu_item_handcent_quick_compose"
android:name="com.handcent.sms.ui.HcQuickComposeActivity"
android:taskAffinity="com.handcent.sms.quickcompose"
android:launchMode="singleInstance" android:configChanges="locale|
keyboardHidden|orientation" android:windowSoftInputMode="stateHidden|
adjustPan">
<intent-filter>
<action
android:name="android.intent.action.SEARCH_LONG_PRESS" />
<category android:name="android.intent.category.DEFAULT" /

</intent-filter>
</activity>

When it's activated (through a Search Long Press, or through LP), this is what shows up in the log:

I/ActivityManager( 1123): Displayed activity com.handcent.nextsms/com.handcent.sms.ui.HcQuickComposeActivity: 2072 ms (total 2072 ms)

Any intent geniuses know of a way I can do this in Tasker? I've been plugging in all kinds of things in the Action Intent & Component Intent, but haven't figured it out (trial & error, I really don't know what I'm doing, let alone the difference between Action & Component).

Any help would be greatly appreciated!
[Nexus One Themes and Apps] DroidBois:
I thought net based positioning was accurate within a kilometre or two? In which case I would have thought it would be fine. Either way I think I am better off to trigger it with a exit-work variable between certain times, and say if speed goes above 10KM/h?

I guess you're right, GPS scanning is fine as it doesn't activate unless the less power hungry ones aren't triggered anyway, like say a variable? Then I could use another variable to switch it off until the next day - so

1) leave work - clear 'work' variable - set 'leftwork' variable.

2) on the way - triggered if 'weekday' is set - 'work' is cleared and 'leftwork' is set after 3pm AND moving above 10km/h? AND 'sent' is not set? 'Leftwork' stops it triggering if I am home sick that day and haven't been in to work - set 'commute' - set 'sent' - 'sent' then stops it from triggering again or wasting power scanning for location.

3) Approaching home triggered if 'commute' is set - send message - clear 'commute' - this then stops it from triggering again or wasting power scanning for location.

Only variable still set is 'sent' - so I could clear that the next morning in my 'morning' profile that runs every morning depending on whether it's a weekday or weekend / public holiday.

As for how I detect public holidays, Barry Meade in Australia maintains a public holidays calendar with the state in the location field, so I set the phone to scan that calendar for my state in the location field. Would this take much power though?

I guess there are public google calendars for other countries / religions etc too.

I've got a nifty message that tells my wife I'm coming in for landing at speed and altitude.

Would be fun to put a check in there - if altitude > ground level + 500m then that means I'm flying so send message 'I won the lottery pack your bags hon!' haha..

On another note, I have now set a 'sleep' mode that just silences the phone and turns off mobile data with APNdroid - it's easier than airplane mode and also saves a heap of power (mobile data just kills the battery), then turns mobile data back on again in the morning and syncs everything and makes lots of noise, except on weekends or public holidays in which case it won't be until after 9 or 10am because I may be sleeping or just don't care until that point.

For 'weekend' I have used a range of profiles based on Friday night, Saturday and Sunday day and Saturday night, because Sunday night is a 'school night' so I want the phone to wind down on Sunday night, but not Friday or Saturday night, but also not fire up in the morning on Saturday or Sunday morning.

This seems complex but it also seems like a pretty common requirement so if this approach seems ok I will submit the profiles to the Wiki as they should work for anyone.
[Nexus One Themes and Apps] khaytsus:
Does SMS Compose not do what you want? It starts it, puts some text in, then you can edit and send?

Phone->Compose SMS

Entirely depends, but I often show up in Kansas on my cellphone by my IP, which is what is used.. Could be up to your cell provider how up to date their database is, and if they've put in accurate information into whatever is used for the geo-ip stuff. :)

Overall yes, please put it into the wiki when you're done, sounds like an interesting one! I'm working on one right now myself, right now I track myself and upload to my website, based on a Windows Mobile program called TrackMe. I'm adding offline mode and the ability to upload data later if the current attempt fails.. Somewhat convoluted in Tasker, but not that difficult. :)
[Nexus One Themes and Apps] hagure:
Yeah, not quite. For one, I mainly use Quick Compose for the easy mic button (I know this functionality can be sorta hacked through with SL4A, but that's shaving more yaks than I am here). And secondly, since I have more than one SMS message, instead of going straight to compose, it pops up a selection between Handcent & Messaging, and then just goes to the compose screen. Not "quick" enough =)

Also, I'm trying to learn a little bit more about how intents work.

(Happy) Thanks(Giving!) for your input though.
[Nexus One Themes and Apps] kevinsmbuk:
I have just got tasker an it's an incredible app, definately the best app I have downloaded!

I have an IN CAR profile, that:

Turns wifi off

Turns bluetooth on

Turns gps on

Connects to my in car stereo for audio etc...

All when power is connected.

Then when it's connected to the car stereo via bluetooth it:

Turns Zimly media player on

But, when I pull the power out and bluetooth connection is de-established I want it to kill Zimly app, but I can't seem to work that out!

Any Ideas?
[Nexus One Themes and Apps] khaytsus:
Tasker can't kill apps, it's not in the API. You might look to see if this app has Intents that Tasker can send it, as that's the best possibility. Intents are internal messaging between Android and Apps and depending upon support you can tell programs to do whatever, like Exit, Play, etc..

Never heard of Zimly, I assume that Media->Media Control->Stop or similar things in the Media section don't affect this player? If it can stop the playing, then the program is effectively stopped and will be killed by the Android system in the future.
[Nexus One Themes and Apps] kevinsmbuk:
What about 'Select Action Category' -> App -> Kill App?

Found it, but just doesn't seem to work, think I need more commands to run it, maybe some variables.
[Nexus One Themes and Apps] XERO_Racer:
anyone know how to setup where tasker can make my X10's LED blink on cell service? i cant get it to work :confused:
[Nexus One Themes and Apps] khaytsus:
Sorry, I wasn't precise.. :) Since 2.2, this is no longer possible.

http://tasker.dinglisch.net/faq-problem.html
[Nexus One Themes and Apps] kevinsmbuk:
Ahh right, bugger. Is there anything else i can do then?

Thanks for your help
[Nexus One Themes and Apps] fubaya:
This works for some apps.
[Nexus One Themes and Apps] jacksilverburgh:
Is there a way to setup a face call with tasker?
[Nexus One Themes and Apps] teh_lorax:
If you're rooted, there is a locale execute app. It allows you to issue linux kill commands. It *does* work, but I don't know how healthy it is for the app to be constantly killed.
[Nexus One Themes and Apps] sheepforwheat:
Set Alarm Clock at different Time each day

Please Help:

I have a profile that detects what time i get to work based on my cell location. I want to be able to have tasker set an alarm, on the fly, 8 and a half hours after i get to work, so that i don't have to manually set an alarm for when to go home.

I see that you can pass data to an app using a tasker tast. So I am thinking there must be some way to use this mechanism to pass parameters to set an alarm at a defined time to the built-in alarm clock app.

I do not want to use the calendar entry and notification method. I want to create alarm clock times.
[Nexus One Themes and Apps] mrtiger:
I have som problem with thisone.

i yust get a message on the notify that : The current temp is clear:-11C </title> <link>http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=%ZIPCODE

Can someone plz tell me whats wrong here.

Here is my script:

New Task: Weather

Action: Variable Set

Name %ZIPCODE to (EUR|NO|NO012|FREDRIKSTAD)

Action: HTTP GET

Server: http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=%ZIPCODE

Mime Type text/xml

Action: Variable Split

Name %HTTPD

Splitter <temp_F>

Action: Variable Split

Name %HTTPD2

Splitter </temp_F>

Action: Notify

Title: The Current Temp is %HTTPD21
[Nexus One Themes and Apps] kevinsmbuk:
Just a thought referencing to my previous problem of killing an the audio app, I don't actually need to, I can just pause it and then return to the home screen.

But how can I set it up so my phone knows it has disconnected from my car's bluetooth headunit/cd player?
[Nexus One Themes and Apps] kevinsmbuk:
I think I may have figured it.

1. Add an exit task to bluetooth connected.

2. Action: Media Control cmd toggle pause, simulate media button.

3. Action: Go Home

Havent tested it in car, but works in principle!!!

All I need it to do now is turn the screen off, but cant find an option for that?
[Nexus One Themes and Apps] khaytsus:
Turning the screen off is not directly possible... But maybe read these two posts..

http://groups.google.com/group/task...12c91189335?lnk=gst&q=screen#4620212c91189335

http://groups.google.com/group/task...7e3721c98f0?lnk=gst&q=screen#6ee457e3721c98f0

Which lead to this..

http://code.google.com/p/proximitytoolextension/downloads/list

I have not yet tried this myself, and not 100% sure it's compatible with all phones etc etc...
[Nexus One Themes and Apps] rondietz1:
Car charger vs wall outlet

This may be obvious but, is there a difference detected that can be used between plugging the phone into a car charger vs plugging it into house power? Does it detect the difference between 12v and 110v that can be used as different states?
[Nexus One Themes and Apps] khaytsus:
Only USB vs AC. And no, the voltage is always the same. :) There is an AC State which will trigger if it's charging at all, charging USB, or charging AC.

USB = Slower charge method detected, ie: Plugged into a computer, or a slow charger.
[Nexus One Themes and Apps] crachel:
interesting. i've been using CM lockscreen gestures to launch a Tasker shortcut that toggles wifi, but the annoying part is the screen unlocks and then doesn't turn off again until the default timeout period. i might check this out more and see if its going to help..

since the powerwidget in the CM status bar is capable of putting the phone to sleep, I figured there might be a better way.. just havent really cared enough to look into it
[Nexus One Themes and Apps] crachel:
Here's an outstanding spreadsheet by Dave on the Tasker Google Group board, all kinds of great ideas: Google Docs Spreadsheet

(Click the "Open" link to view the entire document)
[Nexus One Themes and Apps] MoonshineFox:
GPRS/3G toggle

This has been asked several times, but noone seems to have the answer.

I want to make a profile that will disable 3G/HSPA when the display is off (timed out and locked), and change to GRPS data (to keep IMs connected but saving battery) and then reactivate 3G/HSPA when I unlock the screen (for fast surfing/Youtube and whatnot).

Can this be done? I can find how to completely disable/enable mobile data, but not switch between GPRS/3G.
[Nexus One Themes and Apps] torchedlh:
I'm having an issue with Tasker not restoring settings after exiting a profile. I have a simple profile that that turns notification vibrations off and reduces the screen timeout to 8 seconds upon laying the phone down flat. However, even after the phone has exited this profile, the settings do not get restore and the screen still timeouts in 8 seconds. I shouldnt have to add exit tasks correct? What could I be doing wrong?
[Nexus One Themes and Apps] Sistum Id:
Do you have the notification icon disabled?
[Nexus One Themes and Apps] torchedlh:
Do you mean "run in foreground" disabled? yes i do...

EDIT: just enabled it, same problem. seems like the only fix for this is to add the exit tasks...
[Nexus One Themes and Apps] Sistum Id:
Not run in foreground. the one underneath it "Notification Icon"

I noticed even when applying new task, my phone wasn't seeing them. I would have to turn Tasker off and back on for the new active task to kick in.

I turned on notification icon, turned off Tasker and back on. I don't seem to have any problems as of yet. Most if not all task have exit profiles.

Nevermind, the icon is nothing important really. I'm still having issues with task exiting.

Edit I removed all exiting task from all my profiles. Everything is working as normal.

It seems a exiting task will override any active task with similar setting/action. Or maybe I don't fully understand the exit task.
[Nexus One Themes and Apps] torchedlh:
Yea I dont see an option to turn the icon on/off, just the option to choose your icon (including a blank one).
[Nexus One Themes and Apps] Sistum Id:
I went ahead and made a profile like yours. It looks like you do need to make an exit task for display

Change the display timeout to whatever you normally like to have it at.
[Nexus One Themes and Apps] spartan07:
Looks like I cannot get xda app to work when I have data off and just fire it up when certain apps get launched. I have 1 profile that keeps the data off and another to turn it on when the app gets launched. It looks like the data connection gets turned off after xda tries to make the connection to the site. Even after the app has been launched and then the data kicks in I cannot get the app to load(black screen). Is there a way to get this to work?
[Nexus One Themes and Apps] crachel:
You could try setting up a Task that

1)Enabled data

2)waited a second or two

3)Launched the XDA app

Then, place the Tasks shortcut somewhere and name/change the icon to the XDA icon.. I'd guess that would work

edit: just tried to satisfy my curiosity and it worked
[Nexus One Themes and Apps] spartan07:
That sounds good, that sucks I would meet to do that for all internet apps for example the market as well. :(

Thank you for the fix. Been stumped since the updated version of Tasker is a bit different than the walkthrough one on the wink. Just moved to Tasker. Was on the fence between Tasker and joucedefender pro.

Thanks again for the help
[Nexus One Themes and Apps] pkx:
This is also a request for help. Tasker works for most things, but not for the task for which I installed it:

Nexus S / Gingerbread:

New > Event > UI > Notification (Done)

+ Display > Turn On (Accessibility IS enabled)

I simply want the display to turn on when any notification comes in... it's not working for me. Any ideas?
[Nexus One Themes and Apps] khaytsus:
Might not be allowed, some versions of Android are more restrictive than others.

As always you might post a message on his forums: http://groups.google.com/group/tasker
[Nexus One Themes and Apps] spartan07:
Is groups the best place to get tutorials on tasker with new ui?
[Nexus One Themes and Apps] khaytsus:
http://tasker.dinglisch.net/ is his main website, has the documentation there, although it doesn't detail every single possible action, it does explain the high level stuff. There's also the Wiki linked from there which has some example things to try to get your feet wet.

As for the "new UI", it's really just an evolution of the original UI, nothing special there, but maybe you mean in general. If so the documentation does explain how to set up a context, add a task, etc. Try simple things, like Context: Orientation Face Down, Task: Notify "face down!" and then apply it and turn the phone over. :)

You can do pretty much ANYTHING in Tasker related to the public Android API, or even not even related to the API, such as alarm clocks, or hourly chimes, or even one tutorial I read about keeping track of some bank numbers..
[Nexus One Themes and Apps] spartan07:
I'm loving Tasker but im having issues with just getting the phone to check every 20minutes and sync also I have it to turn off data when screen is off but when I have pandora on and the screen times out it shuts down pandora I have been.messing with priorities with no luck. When I asked around I was unable to be helped because they told me they were not used to the new hi which is why I asked. Ill be checking the wink and userguides. Just got it so still tinkering. When flashing a cdma rom do I use the Cdma data options or do I use the gsm options? Km on a captivate (att)
[Nexus One Themes and Apps] Omiclops:
It'd be awesome if you guys could post your actual XML files so they could be easily put on our phones rather than copying each instruction. Many thanks.
[Nexus One Themes and Apps] DroidBois:
Agreed on that one. So much seems to be repeated or very similar tasks between many users. Basic tasks like work, home, car.
[Nexus One Themes and Apps] dbilliter:
Foursquare Automation

I have my tasker check me in to foursquare without even having to pull out my phone.
[Nexus One Themes and Apps] glitchexe:
Very cool idea. How did you manage that?
[Nexus One Themes and Apps] S_Dot:
Can someone share their setup to connect to Wifi when home and disconnect when outside?
[Nexus One Themes and Apps] DroidBois:
Wouldn't we be better off just starting a collection of generic profile templates? None of the downloadable profiles on the Tasker website were useful to me.
[Nexus One Themes and Apps] MADiN:
Pop-up "set alarm" and regular events

Hi, I have some ideas for tasks and profiles that I could need some help programming.

1. I would like to get at Pop-up window when I plug in the power for the night. And in the pop-up window I would like to set the time for the alarm for the next morning.

2. I would also like to add a shortcut that makes it quick and easy to insert more common events in my calendar. Like f.eks. if I want to go exercise with my friends the place is always the same, and the title is always the same, so when I click my exercise-shortcut I want a pop-up window to appear where I only have to set time and date, to insert the event in my calendar.

Can anyone help me?
[Nexus One Themes and Apps] DroidBois:
Work Profile

Any ideas on the best way to manage this? I could set a simple GPS flag but that would be power hungry and not work indoors, so I am wandering around looking for wi-fi spots throughout the building on various floors as I go there, setting up a profile for each that sets a variable – WorkNet1, WorkNet2 etc. Then I need to work out what I can do with that.

For now I have a 'WorkLoc' Profile triggered by a Net location that enables WiFi and sets a WorkLoc variable – another profile runs if the WorkLoc variable is active – that runs a task called 'WorkCheck', that STOPS if 'Car' or 'BlueTooth Headset' variable is active (so they take priority), otherwise goes through a series of RUN 'Work' IF WorkNet1=1 and so on statements. So each time I find a wi-fi spot (about 4 so far) I add it to the profiles, so basically the WorkLoc profile runs through a series of checks, stopping if certain variables are active, and running the 'Work' task if any of the other variables are active.

Similarly if BlueTooth is disabled or lost connection, WorkCheck runs as a first priority to immediately turn everything down and so on, if I am near any of those hotspots then the Work task is run, otherwise check if I am in the car or home and run those tasks (with STOP set for each), otherwise run 'Default'. So when my bluetooth headset is disconnected, the exit task runs a series of checks to enable profiles (by running tasks) in order of priority, with 'Work' being top priority.

I have thought hard about this but I can't think of any simpler way to do this.

How do you guys handle it? Do you base it on WiFi hotspots and Net based locations or do you use GPS or what?

I used to use GPS with Locale but thought that would get a bit power hungry with the constant GPS polling?

I tried Cell Near but it's just too hard in the city, although it works fine for home, that then activates WiFi, and then Home task is run when my home wifi is connected, and when I leave that cell range, a series of checks again to run the appropriate task (i.e. default if CAR is NOT active).
[Nexus One Themes and Apps] teh_lorax:
I use Cell Near, since it gives you the best battery. Why wouldn't it work in a city? Works for me without issue in a good sized city.
[Nexus One Themes and Apps] R16:
hello how can turn on 3g with tasker?

i have a htc hero, i am going -> NET -> MOBILE DATA ON and Mobile data apn enable On but 3g appear off.
[Nexus One Themes and Apps] bsktballstar3131:
Can anyone else who is running cm7 or any gingerbread build confirm that mobile data toggling doesn't work properly on gingerbread? Juicedefender doesn't seem to work properly on gingerbread and I tried setting up profiles with tasker to do essentially the same thing as juicedefender and thats not working either...
[Nexus One Themes and Apps] schmooo:
yes none of these automatic toggling settings work on gingerbread i already contacted the dev and he is aware of the problem. he states its basically googles fault for not granting permission in gb to do this. hopefully the issue can be resolved soon
[Nexus One Themes and Apps] R16:
hello ppl, i need help for this,

Basically I want my phone to SMS my wife when i a exactly location on the road...when i am in there place i want my phone send sms .

how can make ?

Please set a profile for me.
[Nexus One Themes and Apps] DroidBois:
Seems like my phone bounces around quite a few cells in the city where I am so experimenting with net based location.
[Nexus One Themes and Apps] R16:
you know how make the profile this?
[Nexus One Themes and Apps] R16:
Solved :D

now i would like to know, how make a task or context to kill other context when if is on.
[Nexus One Themes and Apps] DroidBois:
Yeah I think net based location is the way to go as you can set a radius, and it seems reasonably accurate down to say 100 metres or so? It recommends a radius of 1500 metres but is that really necessary?
[Nexus One Themes and Apps] R16:
you put the radius as you like, 1500 is good if you are driving, because 1500meters are covered to fast.
[Nexus One Themes and Apps] xavier7:
Hi Guys,

Searched around but cant seem to find the answer, forgive me if this has been answered.

My goal is to set Gallery to perform the following when launched to properly view the pictures that are in landscape mode. (I don't like home screens or settings screen tilting when I don't want them to)

- auto-rotate

- auto-brightness OFF

- set brightness to +148

so far I have successfully implemented it, but I notice when I launch Gallery, it would appear as if Gallery is refreshing itself for 2 times. probably the Tasks working it out.

Is there a way to prevent this? even when I chose to view a video (via another app (Facebook) using the default Gallery video, it hangs awhile so the Tasks would work)

Below are my settings.

Profile: Gallery

Task: Tilt Gallery

- Display Rotation > Set On

- Auto Brightness > Set Off

- Display Brightness - level 148

Exit Task: Tilt Gallery Off

- Display Rotation > Set Off

- Auto Brightness > Set On