org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-180F11FD-8D26-4305-814F-01BF8DB2DDC8.html
changeset 229 716254ccbcc0
equal deleted inserted replaced
228:913c9751c067 229:716254ccbcc0
       
     1 
       
     2 <!DOCTYPE html
       
     3   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
     4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="(C) Copyright 2009"/><meta name="DC.rights.owner" content="(C) Copyright 2009"/><meta name="DC.Type" content="mobileconcept"/><meta name="DC.Title" content="openApplication()"/><meta name="DC.Relation" scheme="URI" content="GUID-A8DAB890-1BB6-42C6-8448-05F38EAFE985"/><meta name="DC.Relation" scheme="URI" content="GUID-87B333A2-FDA1-4BC3-8803-C5702C5869A1"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Relation" scheme="URI" content="GUID-6CD2776F-A868-4280-967F-4EB426212556"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-180F11FD-8D26-4305-814F-01BF8DB2DDC8"/><title>openApplication() </title><script type="text/javascript">
       
     5       function initPage() {}
       
     6     </script><link href="../PRODUCT_PLUGIN/book.css" rel="stylesheet" type="text/css"/><link href="css/s60/style.css" rel="stylesheet" type="text/css" media="all"/></head><body onload="initPage();"><div class="body"><div class="contentLeft prTxt"><h1 class="pageHeading" id="GUID-180F11FD-8D26-4305-814F-01BF8DB2DDC8">openApplication()</h1><div>
       
     7 <p><strong>Description:</strong></p>
       
     8 <p>The <code>openApplication</code> method enables a widget to launch an S60 mobile application in the stand-alone mode.</p>
       
     9 <p><strong>Syntax:</strong></p>
       
    10 <pre class="codeblock" id="GUID-30D1C34B-F271-4165-984A-21BB7DD393BA">[void] window.widget.openApplication(HexNumber Uid, String param) </pre>
       
    11 <p>or</p>
       
    12 <pre class="codeblock" id="GUID-B75206DB-3C72-40E3-9414-B76894E0843E">[void] widget.openApplication(HexNumber Uid, String param)</pre>
       
    13 <p><strong>Arguments:</strong></p>
       
    14 <ul>
       
    15 <li><p><code>Uid</code>:</p>
       
    16 
       
    17 <p>A hexadecimal number that specifies the UID of the S60 application to be activated. See the table below for example application UIDs.</p>
       
    18 
       
    19 </li>
       
    20 <li><p><code>param</code>:</p>
       
    21 
       
    22 <p>A text string defining a possible argument string that is accepted by the S60 application to be activated. The arguments vary between applications. For example, when defined for the Web Browser for S60 application (UID: 0x10008D39), the parameter <code>"4"+"&lt;Space&gt;"+"&lt;url&gt;"</code> tells the browser to open with content from a specific URL. The parameter <code>"5"</code> launches the browser with the Start page open. You can also use an empty string with any application, which results in launching the specified application with default behavior.</p>
       
    23 
       
    24 </li>
       
    25 </ul>
       
    26 <p><strong>Return value:</strong></p>
       
    27 <p>This method does not return a value.</p>
       
    28 <p><strong>Remarks:</strong></p>
       
    29 <p>For security reasons, a widget cannot open another widget by using this method.</p>
       
    30 <p><strong>Example code:</strong></p>
       
    31 <pre class="codeblock" id="GUID-AE538B76-0457-43B6-B162-1100CBC216E9">// function launches the S60 Profiles application
       
    32 widget.openApplication(0x100058F8, "");</pre>
       
    33 <p><strong>Example application UIDs:</strong></p>
       
    34 <p>The following table lists some of the applications that can be launched from a widget, as well as the application UIDs.</p>
       
    35 <div class="tablenoborder"><a name="GUID-7C01555E-63C3-431D-A2C4-5AAEEC0A1551"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-7C01555E-63C3-431D-A2C4-5AAEEC0A1551" frame="border" border="1" rules="all">
       
    36 <thead align="left">
       
    37 <tr class="title "><th class="cellrowborder" valign="top" width="20.930232558139533%" id="d0e14234">
       
    38 <p>Application name</p>
       
    39 </th><th class="cellrowborder" valign="top" width="18.272425249169437%" id="d0e14239">
       
    40 <p>Application UID</p>
       
    41 </th><th class="cellrowborder" valign="top" width="60.797342192691026%" id="d0e14244">
       
    42 <p>Description</p>
       
    43 </th></tr>
       
    44 </thead>
       
    45 <tbody>
       
    46 <tr class="">
       
    47 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
    48 <p>Web Browser for S60</p>
       
    49 </td>
       
    50 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
    51 <p>0x10008D39</p>
       
    52 </td>
       
    53 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
    54 <p>Default browser application of the S60 platform.</p>
       
    55 </td>
       
    56 </tr>
       
    57 <tr class="bg ">
       
    58 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
    59 <p>Messaging</p>
       
    60 </td>
       
    61 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
    62 <p>0x100058C5</p>
       
    63 </td>
       
    64 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
    65 <p>Enables messaging operations, such as sending and receiving text messages and email.</p>
       
    66 </td>
       
    67 </tr>
       
    68 <tr class="">
       
    69 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
    70 <p>Contacts</p>
       
    71 </td>
       
    72 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
    73 <p>0x101f4cce</p>
       
    74 </td>
       
    75 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
    76 <p>Enables the mobile device user to store and manage information related to his or her contacts, for example, phone numbers and email addresses.</p>
       
    77 </td>
       
    78 </tr>
       
    79 <tr class="bg ">
       
    80 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
    81 <p>Log</p>
       
    82 </td>
       
    83 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
    84 <p>0x101f4cd5</p>
       
    85 </td>
       
    86 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
    87 <p>Provides a record of communication events, such as missed voice calls, duration of the last voice call, and received text messages.</p>
       
    88 </td>
       
    89 </tr>
       
    90 <tr class="">
       
    91 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
    92 <p>Profiles</p>
       
    93 </td>
       
    94 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
    95 <p>0x100058F8</p>
       
    96 </td>
       
    97 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
    98 <p>Enables the mobile device user to have different settings for different situations, for example, to set the device ringing type to silent during a meeting or set the vibrating alert on when outdoors.</p>
       
    99 </td>
       
   100 </tr>
       
   101 <tr class="bg ">
       
   102 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   103 <p>Calendar</p>
       
   104 </td>
       
   105 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   106 <p>0x10005901</p>
       
   107 </td>
       
   108 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   109 <p>Helps the mobile device user in organizing his or her schedule, for example by adding notes to specific dates.</p>
       
   110 </td>
       
   111 </tr>
       
   112 <tr class="">
       
   113 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   114 <p>Clock</p>
       
   115 </td>
       
   116 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   117 <p>0x10005903</p>
       
   118 </td>
       
   119 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   120 <p>Enables the mobile device user to see the date and time for selected cities around the world, as well as set alarms.</p>
       
   121 </td>
       
   122 </tr>
       
   123 <tr class="bg ">
       
   124 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   125 <p>Recorder</p>
       
   126 </td>
       
   127 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   128 <p>0x100058CA</p>
       
   129 </td>
       
   130 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   131 <p>Enables the mobile device user to record audio clips.</p>
       
   132 </td>
       
   133 </tr>
       
   134 <tr class="">
       
   135 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   136 <p>Converter</p>
       
   137 </td>
       
   138 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   139 <p>0x101F4668</p>
       
   140 </td>
       
   141 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   142 <p>Enables the mobile device user to convert various measures from one unit to another, for example meters to yards.</p>
       
   143 </td>
       
   144 </tr>
       
   145 <tr class="bg ">
       
   146 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   147 <p>Calculator</p>
       
   148 </td>
       
   149 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   150 <p>0x10005902</p>
       
   151 </td>
       
   152 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   153 <p>Enables the mobile device user to make basic calculations.</p>
       
   154 </td>
       
   155 </tr>
       
   156 <tr class="">
       
   157 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   158 <p>Notes</p>
       
   159 </td>
       
   160 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   161 <p>0x1000599d</p>
       
   162 </td>
       
   163 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   164 <p>Text editor that enables the mobile device user to write, view and edit short textual notes.</p>
       
   165 </td>
       
   166 </tr>
       
   167 <tr class="bg ">
       
   168 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   169 <p>File Manager</p>
       
   170 </td>
       
   171 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   172 <p>0x101f84eb</p>
       
   173 </td>
       
   174 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   175 <p>Enables the mobile device user to manage and organize files that are stored in the phone memory of the device or on an external memory card.</p>
       
   176 </td>
       
   177 </tr>
       
   178 <tr class="">
       
   179 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   180 <p>Gallery</p>
       
   181 </td>
       
   182 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   183 <p>0x101f8599</p>
       
   184 </td>
       
   185 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   186 <p>Enables the mobile device user to view and manage media files, such as images, music files and video clips.</p>
       
   187 </td>
       
   188 </tr>
       
   189 <tr class="bg ">
       
   190 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   191 <p>Camera - on a device with one camera</p>
       
   192 </td>
       
   193 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   194 <p>101f857a</p>
       
   195 </td>
       
   196 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   197 <p>Enables the mobile device user to take and manage still pictures as well as to record short video clips with the digital camera of the device.</p>
       
   198 </td>
       
   199 </tr>
       
   200 <tr class="">
       
   201 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   202 <p>Camera - on a device with two cameras</p>
       
   203 </td>
       
   204 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   205 <p>101ffa86</p>
       
   206 </td>
       
   207 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   208 <p>Enables the mobile device user to take and manage still pictures as well as to record short video clips with the digital cameras of the device.</p>
       
   209 </td>
       
   210 </tr>
       
   211 <tr class="bg ">
       
   212 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   213 <p>Music Player</p>
       
   214 </td>
       
   215 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   216 <p>0x102072c3</p>
       
   217 </td>
       
   218 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   219 <p>Enables the mobile device user to listen to music and sound files as well as to manage his or her music collection.</p>
       
   220 </td>
       
   221 </tr>
       
   222 <tr class="">
       
   223 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   224 <p>RealPlayer</p>
       
   225 </td>
       
   226 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   227 <p>0x10005a3e</p>
       
   228 </td>
       
   229 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   230 <p>Enables the mobile device user to play and manage media files that are stored in the device, such as video clips, or media streams from remote locations.</p>
       
   231 </td>
       
   232 </tr>
       
   233 <tr class="bg ">
       
   234 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   235 <p>Bluetooth</p>
       
   236 </td>
       
   237 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   238 <p>0x10005951</p>
       
   239 </td>
       
   240 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   241 <p>Enables the mobile device user to connect to other devices using the Bluetooth local connectivity technology.</p>
       
   242 </td>
       
   243 </tr>
       
   244 <tr class="">
       
   245 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   246 <p>Infrared</p>
       
   247 </td>
       
   248 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   249 <p>0x1000594d</p>
       
   250 </td>
       
   251 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   252 <p>Enables the mobile device user to connect to other devices using the infrared technology.</p>
       
   253 </td>
       
   254 </tr>
       
   255 <tr class="bg ">
       
   256 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   257 <p>Settings</p>
       
   258 </td>
       
   259 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   260 <p>0x100058ec</p>
       
   261 </td>
       
   262 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   263 <p>Enables the mobile device user to manage application and device settings.</p>
       
   264 </td>
       
   265 </tr>
       
   266 <tr class="">
       
   267 <td class="cellrowborder" valign="top" width="20.930232558139533%" headers="d0e14234 ">
       
   268 <p>Themes</p>
       
   269 </td>
       
   270 <td class="cellrowborder" valign="top" width="18.272425249169437%" headers="d0e14239 ">
       
   271 <p>0x10005a32</p>
       
   272 </td>
       
   273 <td class="cellrowborder" valign="top" width="60.797342192691026%" headers="d0e14244 ">
       
   274 <p>Enables the mobile device user to personalize the look and feel of the device with specific UI themes.</p>
       
   275 </td>
       
   276 </tr>
       
   277 </tbody>
       
   278 </table></div></div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>