From: Seonah Moon Date: Wed, 16 Mar 2016 06:04:30 +0000 (+0900) Subject: [Network] Add prerequisites to specify privileges X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5228bacf6c3b182faee6d15a46d78a3a5cdf8bd;p=sdk%2Fonline-doc.git [Network] Add prerequisites to specify privileges Change-Id: Ife6c64eeb21c163202fb716485b1d879257eeae1 Signed-off-by: Seonah Moon --- 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/curl_tutorial_n.htm b/org.tizen.tutorials/html/native/network/curl_tutorial_n.htm index 6ea40eb..b8d5a64 100644 --- a/org.tizen.tutorials/html/native/network/curl_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/network/curl_tutorial_n.htm @@ -23,6 +23,7 @@

    Content

      +
    • Prerequisites
    • Initializing Curl
    • Managing the Proxy Address
    • Transferring HTTP Requests
    • @@ -45,6 +46,7 @@

      Warm-up

      Become familiar with the Curl API basics by learning about:

      +

      Prerequisites

      +

      To use libcurl, the application has to request permission by adding the corresponding privileges to the tizen-manifest.xml file.
      +

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

      Initializing Curl

      To initialize Curl for use:

        @@ -63,8 +72,6 @@ #include <net_connection.h> -
      1. To use the Curl API for Internet access, add the http://tizen.org/privilege/internet privilege to the manifest file of the application. -
      2. Initialize the Curl library and the Curl handle using the curl_easy_init() function:

        @@ -173,4 +180,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 +