Browser

Example: Open a URL with Browser

start_webpage_template.xml
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <templates>
  3. <template prio="20" name="Browser" icon="@drawable/http_request">
  4. <keyConfiguration>
  5. <function>
  6. <invocations>
  7. <invocation>
  8. <intent>
  9. <action>android.intent.action.VIEW</action>
  10. <data></data> <!-- will be filled by the uri-parameter -->
  11. <component>org.mozilla.klar/org.mozilla.focus.activity.IntentReceiverActivity</component>
  12. </intent>
  13. </invocation>
  14. </invocations>
  15. </function>
  16. </keyConfiguration>
  17. <parameters>
  18. <!-- entered by user in phone-UI or on website when configuring this key-function.
  19. Will then be pasted-in above where this xpath points to: -->
  20. <parameter name="@string/uri">
  21. <path>//data</path>
  22. </parameter>
  23. </parameters>
  24. </template>
  25. </templates>