Username:    Password:    Remember me     
Automate actions on docking and undocking
Using tasker with the Padfone

by robfisher print the content item create pdf file of the content item
 9.0 - 3 votes -

Docking and undocking the Padfone works well, but occasionally there are problems, such as when using different custom keyboards for phone and tablet. Luckily it is possible to automate tasks.

Tasker is an app that lets you run things automatically on Android in response to various events, sensors or whatever.

I wanted to switch keyboards automatically depending on whether I am using the phone screen or the tablet screen (I use SwiftKey 3 and this does not like switching displays at all!)

Tasker does not know about the Padfone, but I found out that when the phone is docked to the Padfone Station (tablet) it thinks it is on AC power. Tasker does have detection of power source, and AC power is distinct from USB power (which you get from your PC if you are transferring files, for example) so this solution should be good enough.

Another limitation is that Android does not allow changes to the input method without user interaction, so the best we can do is display the input method chooser after docking or undocking, but that's quite useful. Tasker should be able to do other stuff also, like restarting any apps that have died.

1. Buy and install Tasker.

2. Before doing anything else, go to settings -> ASUS Customised Settings -> Dynamic display switch list and make sure that Tasker is checked, otherwise it will just get closed when you switch displays and none of this will work.

3. Open Tasker and get through all the introductory stuff which is probably worth reading as it's quite a complicated app.

4. Create a new profile by clicking the + on the profiles tab. Call it "Docked" (the name doesn't really matter, but this makes sense).

5. Choose "State", then "Power", then "Power" again, then set "Source" to "AC" and tap the green tick.

6. Choose "New Task". Tasks are just actions that you can set up to do stuff. Name the task "Choose Keyboard".

7. Click the + to add an action. Choose "Task", then "Wait" and then set the "Seconds" slider to 5. This gives us a time delay as I found that the Padfone is not really responding too well right after it is first inserted into the dock. Click the green tick.

8. Click the + to add another action. Choose "Input" then "Input Method Select" then click the green tick (ignoring the "If" checkbox).

9. Click the green tick again to create the task.

10. Long-press on the "Choose Keyboard" task you just created and select "Add Exit Task". Select "Choose Keyboard" again. This makes Tasker show the keyboard chooser when you undock as well as when you dock.

That's it! You should find an ongoing notification that tells you either the "Docked" profile is active or that there are no profiles active (when undocked).

Instead of "Choose Keyboard" you could also create tasks called "Dock" and "Undock" and have different sequences of actions run.
Comments
Automate actions on docking and undocking dtorga 17 Sep : 17:03 Reply to this
Comments: 2

Registered: 11 Sep : 01:48
actually im using A.I.Type and it works really good in both modes...

Location: prague
dtorga


Automate actions on docking and undocking Neumaennl 17 Sep : 21:54 Reply to this
Comments: 2

Registered: 17 Sep : 18:05
Llama is a free clone of Tasker. Can somebody confirm if this works, too?


Automate actions on docking and undocking HelsinkiSisu 18 Sep : 09:07 Reply to this
Comments: 1

Registered: 13 Aug : 20:15
Is there a similar trigger I can use when docking with the keyboard dock? I use Swiftkey, SwiftKey Tab and the Asus keyboard for the keyboard dock. The above article works great for the phone and tab, but not the keyboard dock.
 10.0

Location: Helsinki
Rooted Asus PadFone with docking station (CHT) & docking keyboard (Nordic)

Re: Automate actions on docking and undocking Rowman 19 Dec : 07:47 Reply to this
Comments: 7

Registered: 01 Aug : 08:25
"Hardware Keyboard connected" is a trigger

PadFone 32GB, Station + Station Dock + Stylus

Automate actions on docking and undocking Rowman 08 Oct : 00:14 Reply to this
Comments: 7

Registered: 01 Aug : 08:25
just swiftkey 3 tablet with padfone and station
(one firmware update fixed the problems)
you dont need tasker any longer

PadFone 32GB, Station + Station Dock + Stylus

Ugg Baratas Outlet bamboose 20 Sep : 14:02 Reply to this
Guest

How amazing that doctors said Women UGG is not benefit for women.Ugg Baratas If they come to Ugg factory, they will find how silly they are.

FkRznsBuVyYjYKQM Barneyxcq 18 Feb : 18:38 Reply to this
Guest

Bxn8RQ http://www.LnAJ7K8QSpfMO2wQ8gO.com

llDgXzDLSX kxkbxdg 26 Mar : 05:48 Reply to this
Guest

slJxaw <a href="http://egekvimtpcji.com/">egekvimtpcji</a>, tvejtmxstfjl, iknsfhkjrlie, http://ojotzrzhfugg.com/

Ugg Baratas bamboosk 25 Sep : 01:48 Reply to this
Guest

With the sucess and popularity of the coloured GHD hair straighteners, it leaves us in no doubt that GHD will again release a new coloured GHD very soon. They question is,<a hrefs="http://www.chocolaterain.com/upload/news/ghdnz.asp">GHD Sale NZ</a> What colour will it be?

EWhPQTKOgCm Barneyxcq 18 Feb : 12:34 Reply to this
Guest

fN9nUV http://www.LnAJ7K8QSpfMO2wQ8gO.com

Планета нубиру приближается - что делать землянам noerrik1977infax 03 Apr : 21:13 Reply to this
Guest


Советуем прочесть блог на тему - помада оттенок марсала

Submit comment
Subject
Username:
Comment:

Padfone Club Newsletter


Poll


Should the Padfone series continue?



Yes, Asus should continue it

Yes, but a different company is ok as well

No, I don't care for it

Recent Articles
General
How To
How to Reset/Wipe your Padfone (1, 2 or Infinity)

Review of RAVPower RP-PB07 Battery Pack

New Padfone Infinity
How To
How to root the New Padfone Infinity
New Padfone Infinity Firmwares (Files and How to install)

Padfone Infinity
How To
How to root the Padfone Infinity
Padfone Infinity Firmwares (Files and How to install)

Applications
Asus Echo
Asus Menu & Shortcuts
Asus Camera

Reviews
Detailed Padfone Infinity Review

Padfone 2
How To
How to root the Padfone 2
Padfone 2 Firmwares (Files and How to install)

Reviews
Norêve case for the Padfone 2 (Review by allram)
Norêve case for the Padfone 2 (Review by JHS_NL)

Padfone
How To
How to root the Padfone
Automate actions on docking and undocking
Padfone Firmwares (Files and How to install)

Applications
Garmin for Padfone - Loading Maps
Padfone App Guide
Dynamic Display Switching

Reviews
Detailed Padfone owner review
Connecting Padfone to a TV
Screen protectors for Padfone

2012-2013 Copyright © Padfone Club, All rights reserved.
Privacy Policy - Terms of Use - Disclaimer - Contact Us - Advertise - Our Team - Sitemap - Asus

Padfone Club is part of Schattorie Solutions