Add sample of openBrowser() usage. Unfortunately it doesn't work because the radio buttons are acting weird.

This commit is contained in:
Simo Kinnunen
2014-04-22 11:03:33 +09:00
parent 0dfc502e80
commit ced84f0f66
4 changed files with 24 additions and 4 deletions

View File

@@ -38,6 +38,13 @@ module.exports = syrup.serial()
})
router.on(wire.BrowserOpenMessage, function(channel, message) {
if (message.browser) {
log.info('Opening "%s" in "%s"', message.url, message.browser)
}
else {
log.info('Opening "%s"', message.url)
}
var reply = wireutil.reply(options.serial)
adb.startActivity(options.serial, {
action: 'android.intent.action.VIEW'