Browser
Example: Open a URL with Browser
start_webpage_template.xml |
---|
| <?xml version="1.0" encoding="UTF-8"?>
<templates>
<template prio="20" name="Browser" icon="@drawable/http_request">
<keyConfiguration>
<function>
<invocations>
<invocation>
<intent>
<action>android.intent.action.VIEW</action>
<data></data> <!-- will be filled by the uri-parameter -->
<component>org.mozilla.klar/org.mozilla.focus.activity.IntentReceiverActivity</component>
</intent>
</invocation>
</invocations>
</function>
</keyConfiguration>
<parameters>
<!-- entered by user in phone-UI or on website when configuring this key-function.
Will then be pasted-in above where this xpath points to: -->
<parameter name="@string/uri">
<path>//data</path>
</parameter>
</parameters>
</template>
</templates>
|