From 35a95cf7a8ed1c9e6cd0bc925214b3b0688f24a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B0=D0=BC=D0=BF=D1=83=D1=88=D0=B0?= Date: Mon, 9 Feb 2015 10:51:26 +0300 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fcdf150..e57e96e 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ function(error) { /* error */ _ANDROID: Start application with key:value parameters_ ```js -navigator.startApp.start([[...], [{"key1":"value1"},{"key2":"value2"}, {...}, {"keyN":"valueN"}], function(message) { /* success */ +navigator.startApp.start([[...], [{"key1":"value1"},{"key2":"value2"}, {...}, {"keyN":"valueN"}]], function(message) { /* success */ console.log(message); // => OK }, function(error) { /* error */ @@ -81,12 +81,12 @@ function(error) { /* error */ Example, call application with activity and key:value param: ```js -navigator.startApp.start([["app.com.name", "app.com.name.Activity"], [{"product_id":"100"}], ...); +navigator.startApp.start([["app.com.name", "app.com.name.Activity"], [{"product_id":"100"}]], ...); ``` _ANDROID: Start application with action parameters_ ```js -navigator.startApp.start([["action", "ACTION_NAME"], ["tel:+79109999999"], function(message) { /* success */ +navigator.startApp.start([["action", "ACTION_NAME"], ["tel:+79109999999"]], function(message) { /* success */ console.log(message); // => OK }, function(error) { /* error */ @@ -97,19 +97,19 @@ ACTION_NAME these is a Intent flag [Intent Flags](http://developer.android.com/r Example, call skype: ```js -navigator.startApp.start([["action", "VIEW"], ["skype:+79109999999"], ...); +navigator.startApp.start([["action", "VIEW"], ["skype:+79109999999"]], ...); ``` Example, call phone: ```js -navigator.startApp.start([["action", "CALL"], ["tel:+79109999999"], ...); +navigator.startApp.start([["action", "CALL"], ["tel:+79109999999"]], ...); ``` Example, call browser: ```js -navigator.startApp.start([["action", "VIEW"], ["https://github.com/lampaa"], ...); +navigator.startApp.start([["action", "VIEW"], ["https://github.com/lampaa"]], ...); ``` Example, call facebook: ```js -navigator.startApp.start([["action", "VIEW"], ["fb://facewebmodal/f?href=https://www.facebook.com/GitHub"], ...); +navigator.startApp.start([["action", "VIEW"], ["fb://facewebmodal/f?href=https://www.facebook.com/GitHub"]], ...); ``` Use **iOS**