From d9faf74ceb0ead74bbd1141af231abe272f19575 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Wed, 16 Mar 2016 15:04:30 +0900 Subject: [PATCH] [Network] Add prerequisites to specify privileges Change-Id: I3f112655d27d1a3f7a45098d09795a330b9eb6e3 Signed-off-by: Seonah Moon --- .../html/native/network/connection_tutorial_n.htm | 12 +++++++++++- .../html/native/network/wifi_direct_tutorial_n.htm | 10 +++++++++- org.tizen.tutorials/html/native/network/wifi_tutorial_n.htm | 13 ++++++++++++- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/org.tizen.tutorials/html/native/network/connection_tutorial_n.htm b/org.tizen.tutorials/html/native/network/connection_tutorial_n.htm index 1d038c7..65b447a 100644 --- a/org.tizen.tutorials/html/native/network/connection_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/network/connection_tutorial_n.htm @@ -23,6 +23,7 @@

Content

    +
  • Prerequisites
  • Initializing Connections
  • Getting Network Connection Details
  • Getting Connection Information
  • @@ -55,6 +56,7 @@

    Warm-up

    Become familiar with the Connection API basics by learning about:

    +

    Prerequisites

    +

    To use connection APIs, the application has to request permission by adding the corresponding privileges to the tizen-manifest.xml file.
    You can modify it for your own needs

    +
    + <privileges>
    +    <privilege>http://tizen.org/privilege/network.get</privilege>
    +    <privilege>http://tizen.org/privilege/network.set</privilege>
    +    <privilege>http://tizen.org/privilege/network.profile</privilege>
    + </privileges> 

    Initializing Connections

    @@ -735,4 +745,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + diff --git a/org.tizen.tutorials/html/native/network/wifi_direct_tutorial_n.htm b/org.tizen.tutorials/html/native/network/wifi_direct_tutorial_n.htm index 20986e7..56baed9 100644 --- a/org.tizen.tutorials/html/native/network/wifi_direct_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/network/wifi_direct_tutorial_n.htm @@ -23,6 +23,7 @@

    Content

      +
    • Prerequisites
    • Initializing Wi-Fi Direct™
    • Activating Wi-Fi Direct™
    • Peers and groups @@ -52,6 +53,7 @@

      Warm-up

      Become familiar with the Wi-Fi Direct API basics by learning about:

      +

      Prerequisites

      +

      To use Wi-Fi Direct™ APIs, the application has to request permission by adding the corresponding privileges to the tizen-manifest.xml file.

      +
      + <privileges>
      +    <privilege>http://tizen.org/privilege/wifidirect</privilege>
      + </privileges> 

      Initializing Wi-Fi Direct™

      @@ -510,4 +518,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + diff --git a/org.tizen.tutorials/html/native/network/wifi_tutorial_n.htm b/org.tizen.tutorials/html/native/network/wifi_tutorial_n.htm index cdbe177..5ee8f63 100644 --- a/org.tizen.tutorials/html/native/network/wifi_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/network/wifi_tutorial_n.htm @@ -23,6 +23,7 @@

      Content

        +
      • Prerequisites
      • Initializing Wi-Fi
      • Activating a Wi-Fi Device
      • Scanning for Access Points
      • @@ -46,12 +47,22 @@

        Warm-up

        Become familiar with the Wi-Fi API basics by learning about:

        +

        Prerequisites

        +

        To use Wi-Fi APIs, the application has to request permission by adding the corresponding privileges to the tizen-manifest.xml file.
        You can modify it for your own needs

        +
        + <privileges>
        +    <privilege>http://tizen.org/privilege/network.get</privilege>
        +    <privilege>http://tizen.org/privilege/network.set</privilege>
        +    <privilege>http://tizen.org/privilege/network.profile</privilege>
        + </privileges> 
        +

        Initializing Wi-Fi

        To initialize Wi-Fi:

          @@ -327,4 +338,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + -- 2.7.4