fix TNEF-6698
authorjomui <jongmun.woo@samsung.com>
Wed, 13 Jan 2016 08:08:41 +0000 (17:08 +0900)
committerjomui <jongmun.woo@samsung.com>
Fri, 15 Jan 2016 01:32:48 +0000 (10:32 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I1dcf350513d8f6b23892209066dffd434d32681a

org.tizen.tutorials/html/native/location/geofence_tutorial_n.htm

index e0399e1..6a242b1 100644 (file)
@@ -99,7 +99,7 @@ char* address = &quot;India&quot;;
 geofence_h fence_h;
 geofence_create_geopoint(place_id, latitude, longitude, radius, address, &amp;fence_h);
 </pre></li>
-<li>Wi-Fi/Bluetooth geofence
+<li>Bluetooth geofence
 <pre class="prettyprint">
 char* bssid = &quot;82:45:67:7E:4A:3B&quot;;
 char* ssid = &quot;Cafeteria&quot;;
@@ -208,12 +208,11 @@ geofence_state_changed(int geofence_id, geofence_state_e state, void *user_data)
 </li>
 <li><p>Receive the current state on request.</p>
        <p>You can get the current state of the user with respect to a fence, such as the in or out state and the duration of the current state.</p>
-<ul><li><p>To access the state or the duration, first create a state handle:</p>
+<ul><li><p>To access the state or the duration, first create a status handle:</p>
 <pre class="prettyprint">
 int geofence_id = 1;
 geofence_status_h status_h;
 geofence_status_create(geofence_id, &amp;status_h);
-geofence_status_destroy(status_h);
 </pre></li>
 <li><p>To get the current state, call the <span style="font-family: Courier New,Courier,monospace;">geofence_status_get_state()</span> function:</p>
 <pre class="prettyprint">
@@ -225,8 +224,13 @@ geofence_status_get_state(status_h, &amp;state);
 int duration;
 geofence_status_get_duration(status_h, &amp;duration);
 </pre>
-<p>The duration is provided in seconds.</p></li></ul>
-</li></ol>
+<p>The duration is provided in seconds.</p></li>
+<li><p>To destroy the status handle, call the <span style="font-family: Courier New,Courier,monospace;">geofence_status_destroy()</span> function:</p>
+<pre class="prettyprint">
+geofence_status_destroy(status_h);
+</pre>
+<p>The status handle should be destroyed when it is not needed.</p></li></ul>
+</ol>
 
                        
                                <h2 id="info" name="info">Retrieving Geofence Information</h2>