Skip to content

Intent#

Starts an android app via an Intent.

You need to specify an action, which will be called. You can also define multiple extras.

Example:

<key keyNumber="14" label="Dial">
   <keyConfiguration>
     <function>
       <invocations>
         <invocation>
           <intent>
             <action>android.intent.action.DIAL</action>
             <data>tel:123-555-</data>
           </intent>
         </invocation>
       </invocations>
     </function>
   </keyConfiguration>
 </key>

Intents can also be used to start app, e.g. the Auerswald-Settings app uses the following intent de.auerswald.settings/.SettingsActivity. If you'd like to put it on Home-Screen-Key #4, you can use the following snippet:

  <homeScreen>
    <key keyNumber="4">
      <keyConfiguration>
        <function>
          <invocations>
            <invocation>
              <intent>
                <component>de.auerswald.settings/.SettingsActivity</component>
                <action>android.intent.action.MAIN</action>
              </intent>
            </invocation>
          </invocations>
        </function>
      </keyConfiguration>
    </key>
  </homeScreen>