Skip to content

Instantly share code, notes, and snippets.

@davebrny
Last active November 28, 2016 10:22
Show Gist options
  • Save davebrny/5d9978f46d6bb25d429f5b57f43f4db0 to your computer and use it in GitHub Desktop.
Save davebrny/5d9978f46d6bb25d429f5b57f43f4db0 to your computer and use it in GitHub Desktop.
(android, tasker) - show the keyboard input when the Google search app is opened (AutoInput required)

google search - show keyboard

when you open google's search app (version 6.8.21.21.arm) on android you will be shown a blank screen and the keyboard wont show until you tap on the search bar.

this task uses autoinput to click on the search bar which will in turn show the keyboard.

 

which to use: tsk.xml or prf.xml

tsk.xml
if you use a launcher like swipepad to open the google search then you can add a shortcut to the task (tsk.xml) and use that instead. the task will launch the search app and then send the tap action.

prf.xml
if you open the search app by the default method then use the profile (prf.xml) instead which will activate any time the app is opened.

(if youre not sure then just add both of them since they don't seem to conflict with each other)

<TaskerData sr="" dvi="1" tv="4.8u5m">
<Profile sr="prof78" ve="2">
<cdate>1466773290996</cdate>
<edate>1466784552162</edate>
<id>78</id>
<mid0>97</mid0>
<nme>search - show keyboard</nme>
<App sr="con0" ve="2">
<cls0>com.google.android.googlequicksearchbox.SearchActivity</cls0>
<flags>2</flags>
<label0>Google</label0>
<pkg0>com.google.android.googlequicksearchbox</pkg0>
</App>
</Profile>
<Task sr="task97">
<cdate>1466773315910</cdate>
<edate>1466784552162</edate>
<id>97</id>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>1040876951</code>
<label>check for "Say Ok Google" text</label>
<Bundle sr="arg0">
<Vals sr="val">
<AppPackage>com.google.android.googlequicksearchbox</AppPackage>
<AppPackage-type>java.lang.String</AppPackage-type>
<IsFirstAction>false</IsFirstAction>
<IsFirstAction-type>java.lang.Boolean</IsFirstAction-type>
<OnlyClickable>false</OnlyClickable>
<OnlyClickable-type>java.lang.Boolean</OnlyClickable-type>
<OnlyVisible>true</OnlyVisible>
<OnlyVisible-type>java.lang.Boolean</OnlyVisible-type>
<Regex>false</Regex>
<Regex-type>java.lang.Boolean</Regex-type>
<UIUpdateFields>&lt;null&gt;</UIUpdateFields>
<UIUpdateFields-type>java.lang.String</UIUpdateFields-type>
<UIUpdateText>Say "Ok Google"</UIUpdateText>
<UIUpdateText-type>java.lang.String</UIUpdateText-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Only Visible: true
Only Clickable: false
App Package: com.google.android.googlequicksearchbox
Check Screen State: false
Text: Say "Ok Google"</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>ActionTimeout AppPackage UIUpdateFields UIUpdateText FieldsToGet plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
<plugininstanceid>7e1a79b6-88a9-44bd-8823-5ece9ab27479</plugininstanceid>
<plugininstanceid-type>java.lang.String</plugininstanceid-type>
<plugintypeid>com.joaomgcd.autoinput.intent.IntentUIQuery</plugintypeid>
<plugintypeid-type>java.lang.String</plugintypeid-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.joaomgcd.autoinput</Str>
<Str sr="arg2" ve="3">com.joaomgcd.autoinput.activity.ActivityConfigUIQuery</Str>
<Int sr="arg3" val="20"/>
</Action>
<Action sr="act1" ve="7">
<code>1732635924</code>
<label>click the search bar</label>
<Bundle sr="arg0">
<Vals sr="val">
<ActionId>com.google.android.googlequicksearchbox:id/search_plate</ActionId>
<ActionId-type>java.lang.String</ActionId-type>
<ActionType>16</ActionType>
<ActionType-type>java.lang.String</ActionType-type>
<FieldSelectionType>1</FieldSelectionType>
<FieldSelectionType-type>java.lang.String</FieldSelectionType-type>
<IsFirstAction>false</IsFirstAction>
<IsFirstAction-type>java.lang.Boolean</IsFirstAction-type>
<IsTaskerAction>false</IsTaskerAction>
<IsTaskerAction-type>java.lang.Boolean</IsTaskerAction-type>
<NearbyText>&lt;null&gt;</NearbyText>
<NearbyText-type>java.lang.String</NearbyText-type>
<StoredAction>&lt;null&gt;</StoredAction>
<StoredAction-type>java.lang.String</StoredAction-type>
<TextToWrite>&lt;null&gt;</TextToWrite>
<TextToWrite-type>java.lang.String</TextToWrite-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Type: Id
Value: com.google.android.googlequicksearchbox:id/search_plate
Action : Click
Is Tasker Action: false
Check Screen State: false</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%err
Error Code
Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%errmsg
Error Message
Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>TextToWrite StoredAction ActionId RecentFieldIds FieldSelectionType ActionType ActionTimeout NearbyText plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
<plugininstanceid>df9e164e-eca1-40c6-93fd-083348fe88e8</plugininstanceid>
<plugininstanceid-type>java.lang.String</plugininstanceid-type>
<plugintypeid>com.joaomgcd.autoinput.intent.IntentPerformAction</plugintypeid>
<plugintypeid-type>java.lang.String</plugintypeid-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.joaomgcd.autoinput</Str>
<Str sr="arg2" ve="3">com.joaomgcd.autoinput.activity.ActivityConfigPerformAction</Str>
<Int sr="arg3" val="20"/>
</Action>
</Task>
</TaskerData>
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task181">
<cdate>1466810738346</cdate>
<edate>1466850360924</edate>
<id>181</id>
<nme>Googke</nme>
<Action sr="act0" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.google.android.googlequicksearchbox.SearchActivity</appClass>
<appPkg>com.google.android.googlequicksearchbox</appPkg>
<label>Google</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>30</code>
<Int sr="arg0" val="50"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>1732635924</code>
<label>click the search bar</label>
<Bundle sr="arg0">
<Vals sr="val">
<ActionId>com.google.android.googlequicksearchbox:id/search_plate</ActionId>
<ActionId-type>java.lang.String</ActionId-type>
<ActionType>16</ActionType>
<ActionType-type>java.lang.String</ActionType-type>
<FieldSelectionType>1</FieldSelectionType>
<FieldSelectionType-type>java.lang.String</FieldSelectionType-type>
<IsFirstAction>false</IsFirstAction>
<IsFirstAction-type>java.lang.Boolean</IsFirstAction-type>
<IsTaskerAction>false</IsTaskerAction>
<IsTaskerAction-type>java.lang.Boolean</IsTaskerAction-type>
<NearbyText>&lt;null&gt;</NearbyText>
<NearbyText-type>java.lang.String</NearbyText-type>
<StoredAction>&lt;null&gt;</StoredAction>
<StoredAction-type>java.lang.String</StoredAction-type>
<TextToWrite>&lt;null&gt;</TextToWrite>
<TextToWrite-type>java.lang.String</TextToWrite-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Type: Id
Value: com.google.android.googlequicksearchbox:id/search_plate
Action : Click
Is Tasker Action: false
Check Screen State: false</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%err
Error Code
Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%errmsg
Error Message
Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>TextToWrite StoredAction ActionId RecentFieldIds FieldSelectionType ActionType ActionTimeout NearbyText plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
<plugininstanceid>df9e164e-eca1-40c6-93fd-083348fe88e8</plugininstanceid>
<plugininstanceid-type>java.lang.String</plugininstanceid-type>
<plugintypeid>com.joaomgcd.autoinput.intent.IntentPerformAction</plugintypeid>
<plugintypeid-type>java.lang.String</plugintypeid-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.joaomgcd.autoinput</Str>
<Str sr="arg2" ve="3">com.joaomgcd.autoinput.activity.ActivityConfigPerformAction</Str>
<Int sr="arg3" val="20"/>
</Action>
<Img sr="icn" ve="2">
<cls>com.google.android.googlequicksearchbox.SearchActivity</cls>
<pkg>com.google.android.googlequicksearchbox</pkg>
</Img>
</Task>
</TaskerData>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment