File: test2/test.html

Recommend this page to a friend!
  Classes of Till Wehowski   webfan JavaScript Intents Service Server   test2/test.html   Download  
File: test2/test.html
Role: Example script
Content type: text/plain
Description: Example/test
Class: webfan JavaScript Intents Service Server
Register and call services to handle Web intents
Author: By
Last change:
Date: 7 years ago
Size: 877 bytes


Class file image Download
<!DOCTYPE html> <html> <head> <script type="text/javascript" src=""></script> <script type="text/javascript"> function Test(){ window.navigator.startActivity(new Intent( "com.webfan.intents.test", "text/uri-list", ''), function (data) { alert(JSON.stringify(data)); }); } </script> </head> <body> <b>Test</b> <intent action="com.webfan.intents.test" type="text/uri-list" href="" title="testIntents" disposition="new" icon="" /> <div webfan-intent-disposition> </div> <button onclick="Test()"> StartActivity </button> </body> </html>