[tizen_2.4] Add Tizen Alias ID is deprecated comment
authorbg.chun <bg.chun@samsung.com>
Mon, 31 Aug 2015 07:05:13 +0000 (16:05 +0900)
committerbg.chun <bg.chun@samsung.com>
Mon, 31 Aug 2015 09:00:21 +0000 (18:00 +0900)
Change-Id: Ia01a55cafdbe796fda1cd20788c73c85990a6310
Signed-off-by: bg.chun <bg.chun@samsung.com>
org.tizen.guides/html/web/tizen/application/application_w.htm
org.tizen.tutorials/html/web/tizen/application/alarm_tutorial_w.htm

index dfd7b4e..25e4fd5 100644 (file)
@@ -47,7 +47,8 @@
     </tr> 
     <tr> 
      <td class="note">The Application API is mandatory for both Tizen mobile and wearable profiles, which means that it is supported in all mobile and wearable devices. 
-               <p>All mandatory APIs are supported on the Tizen Emulators.</p></td> 
+               <p>All mandatory APIs are supported on the Tizen Emulators.</p>
+               </td> 
     </tr> 
    </tbody> 
   </table>
@@ -79,7 +80,8 @@
   <p>The provider application calls the <span style="font-family: Courier New,Courier,monospace">getRequestedAppControl()</span> method of the <span style="font-family: Courier New,Courier,monospace">Application</span> interface to get the reference of the <span style="font-family: Courier New,Courier,monospace">RequestedApplicationControl</span> object containing the application control passed by the <span style="font-family: Courier New,Courier,monospace">launchAppControl()</span> method from the calling application. Then, the provider application calls either the <span style="font-family: Courier New,Courier,monospace">replyResult()</span> method (in case of success) or the <span style="font-family: Courier New,Courier,monospace">replyFailure()</span> method (in case of failure) of the <span style="font-family: Courier New,Courier,monospace">RequestedApplicationControl</span> interface to return the control back to the requesting application. The result of the provided operation (if any), is delivered as an array of <span style="font-family: Courier New,Courier,monospace">ApplicationControlData</span> objects (in <a href="../../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/application.html#ApplicationControlData">mobile</a> and <a href="../../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/application.html#ApplicationControlData">wearable</a> applications). The result is received in the original calling application through the <span style="font-family: Courier New,Courier,monospace">ApplicationControlDataArrayReplyCallback</span> event handler (in <a href="../../../../../org.tizen.web.apireference/html/device_api/mobile/tizen/application.html#ApplicationControlDataArrayReplyCallback">mobile</a> and <a href="../../../../../org.tizen.web.apireference/html/device_api/wearable/tizen/application.html#ApplicationControlDataArrayReplyCallback">wearable</a> applications). </p> 
   <p>The application control uses the following primary information:</p>
 <ul><li>Application ID 
-<p>Used to identify the provider application of the requested application control. Besides the application ID, a <a href="#platform_appcontrol">platform-defined application control</a> has a special alias name for the application ID with the prefix <span style="font-family: Courier New,Courier,monospace">tizen</span>. For example, the platform phone application has the alias application ID of <span style="font-family: Courier New,Courier,monospace">tizen.phone</span>.</p></li>
+<p>Used to identify the provider application of the requested application control. Besides the application ID, a <a href="#platform_appcontrol">platform-defined application control</a> has a special alias name for the application ID with the prefix <span style="font-family: Courier New,Courier,monospace">tizen</span>. For example, the platform phone application has the alias application ID of <span style="font-family: Courier New,Courier,monospace">tizen.phone</span>.</p>
+<p><font color="red">Tizen Alias ID is deprecated since Tizen 2.3.1.</font></p></li>
 
 <li>Operation 
 <p>Describes an action to be performed by the provider application. The operation ID of the platform-provided operation is in the <span style="font-family: Courier New,Courier,monospace">http://tizen.org/appcontrol/operation/&lt;verb&gt;</span> format. For example, <span style="font-family: Courier New,Courier,monospace">http://tizen.org/appcontrol/operation/view</span>. 
   <p>The browsing a Web page application control service allows you to display Web pages in your own application using the device&#39;s Web browser.</p> 
   <h5 id="appid_browse" name="appid_browse">Application ID</h5> 
   <p>This application control can be accessed using aliased application ID of &quot;<span style="font-family: Courier New,Courier,monospace">tizen.internet</span>&quot;.</p> 
+  <p><font color="red">Tizen Alias ID is deprecated since Tizen 2.3.1.</font></p>
   <h5 id="operation_browse" name="operation_browse">VIEW Operation</h5> 
   <p>This application control supports the <span style="font-family: Courier New,Courier,monospace">http://tizen.org/appcontrol/operation/view</span> operation only.</p> 
   <p>This operation launches a Web browser and displays a specific Web page. The device user can access other Web pages, manage bookmarks, search for text on the Web page, and modify brightness and Internet settings. If the Internet connection is not available or if the specified Web page does not exist, an error message is displayed.</p> 
 var appControl = new tizen.ApplicationControl(&quot;http://tizen.org/appcontrol/operation/view&quot;,
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;http://www.tizen.org&quot;, null, null);
 
-tizen.application.launchAppControl(appControl, &quot;tizen.internet&quot;,
+tizen.application.launchAppControl(appControl, &quot;tizen.internet&quot;, 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log(&quot;launch application control succeed&quot;);},
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {/* Error handling*/}, null);
 }</pre> 
@@ -199,6 +202,7 @@ tizen.application.launchAppControl(appControl, &quot;tizen.internet&quot;,
   <p>The selecting a file application control service allows you to handle media files (image, audio, or video) in your own application.</p> 
   <h5 id="appid_file" name="appid_file">Application ID</h5> 
   <p>This application control can be accessed using aliased application ID of &quot;<span style="font-family: Courier New,Courier,monospace">tizen.filemanager</span>&quot;.</p> 
+  <p><font color="red">Tizen Alias ID is deprecated since Tizen 2.3.1.</font></p>
   <h5 id="operation_file" name="operation_file">PICK Operation</h5> 
   <p>This application control supports the <span style="font-family: Courier New,Courier,monospace">http://tizen.org/appcontrol/operation/pick</span> operation only.</p> 
   <p>This operation displays a list of specific type of media files found in the <span style="font-family: Courier New,Courier,monospace">Media</span> folder on the device or memory card, and returns the selected files back to your own application. The device user can browse all the subfolders and select items from one of the subfolders. The operation only displays files that are of the specified type. You can also display all types of media files by defining <span style="font-family: Courier New,Courier,monospace">all</span> as the type in the operation input data.</p>
@@ -229,10 +233,10 @@ var appControlReplyCallback =
 &nbsp;&nbsp;&nbsp;}
 }
 
-tizen.application.launchAppControl(appControl, &quot;tizen.filemanager&quot;,
+tizen.application.launchAppControl(appControl, &quot;tizen.filemanager&quot;, 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function() {console.log(&quot;launch application control succeed&quot;);},
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function(e) {/* Error handling */}, appControlReplyCallback);
-</pre> 
+</pre>
   
 <h2 id="launch" name="launch">Launching an Application with Application Controls</h2> 
 
@@ -332,15 +336,16 @@ tizen.application.launchAppControl(appControl, null, successCb, errCb, null);
 </pre> 
 
 <h3 name="platform" id="platform">Launching Platform Applications</h3>
-<p>The Tizen platform provides <a href="#platform_appcontrol">predefined application controls</a>, such as phone, file manager, image viewer, and Internet. You can run Tizen base applications explicitly with the aliased application IDs.</p> 
+<p>The Tizen platform provides <a href="#platform_appcontrol">predefined application controls</a>, such as phone, file manager, image viewer, and Internet. You can run Tizen base applications explicitly with the aliased application IDs.</p>
+<p><font color="red">Tizen Alias ID is deprecated since Tizen 2.3.1.</font></p>
 <p>The following code example demonstrates an <span style="font-family: Courier New,Courier,monospace">ApplicationControl</span> interface instance for explicitly launching the image viewer for cropping an image:</p>
 <pre class="prettyprint">
 /* Assuming that the filesystem virtual root &quot;images&quot; has been resolved and saved in variable images */
 var appControl = new tizen.ApplicationControl(&quot;http://tizen.org/appcontrol/operation/image/crop&quot;,
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;images.resolve(&quot;image12.jpg&quot;).toURI(),
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;image/*&quot;, null , null);
-tizen.application.launchAppControl(appControl, &quot;tizen.imageviewer&quot;, successCb, errCb, null);</pre>
-
+tizen.application.launchAppControl(appControl, &quot;tizen.imageviewer&quot;, successCb, errCb, null); </pre>
 <p>The aliased application ID (<span style="font-family: Courier New,Courier,monospace">tizen.imageviewer</span>) is used, and a crop operation on the <span style="font-family: Courier New,Courier,monospace">image12.jpg</span> file is launched.</p>
 
 <table class="note"> 
@@ -349,7 +354,9 @@ tizen.application.launchAppControl(appControl, &quot;tizen.imageviewer&quot;, su
        <th class="note">Note</th> 
       </tr> 
       <tr> 
-       <td class="note">If you are unsure about whether a user&#39;s device has a specific application, use one of the standard Tizen platform applications, such as the phone, image viewer, or file manager, because some version of these applications is available on all Tizen devices. The platform applications use predefined platform application controls and aliased application IDs, which also simplifies the task of launching them.</td> 
+       <td class="note">If you are unsure about whether a user&#39;s device has a specific application, use one of the standard Tizen platform applications, such as the phone, image viewer, or file manager, because some version of these applications is available on all Tizen devices. The platform applications use predefined platform application controls and aliased application IDs, which also simplifies the task of launching them.
+       <p><font color="red">Tizen Alias ID is deprecated since Tizen 2.3.1.</font></p>
+       </td> 
       </tr> 
      </tbody> 
     </table>
index 1e66faa..074458c 100644 (file)
@@ -106,7 +106,7 @@ console.log(alarms.length + &quot; alarms present in the storage.&quot;);
 </pre></li> 
    <li><p>To delete an alarm, use the <span style="font-family: Courier New,Courier,monospace">remove()</span> method with the alarm ID:</p> <pre class="prettyprint">
 /* First add created alarm to the device */
-tizen.alarm.add(alarm1, &quot;tizen.internet&quot;);
+tizen.alarm.add(alarm1, &quot;tizen.internet&quot;); /*Tizen Alias ID is deprecated since Tizen 2.3.1.*/
 /* Then remove it */
 tizen.alarm.remove(alarm1.id);
 </pre> <p>To delete all alarms at once, use the <span style="font-family: Courier New,Courier,monospace">removeAll()</span> method.</p></li> 
@@ -119,7 +119,7 @@ tizen.alarm.remove(alarm1.id);
    <li> <p>To launch an application when an alarm is triggered, you must define the application as a parameter in the <span style="font-family: Courier New,Courier,monospace">add()</span> method used to add the created alarm to the system:</p> <pre class="prettyprint">
 /* Run the browser */
 var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
-tizen.alarm.add(alarm, &quot;tizen.internet&quot;); 
+tizen.alarm.add(alarm, &quot;tizen.internet&quot;); /*Tizen Alias ID is deprecated since Tizen 2.3.1.*/
 </pre> </li> 
    <li> <p>To launch an application with additional information when an alarm is triggered, you must use the application control and define the required arguments as a parameter in the <span style="font-family: Courier New,Courier,monospace">add()</span> method used to add the created alarm to the system:</p> <pre class="prettyprint">
 /* Run the browser and open the defined browser page with the operation/view application control */