[ContactsExchanger]update ContactsExchanger(tizen_2.1) tizen_2.1 2.1b_release
authorgs86.lee <gs86.lee@samsung.com>
Tue, 23 Apr 2013 08:47:39 +0000 (17:47 +0900)
committergs86.lee <gs86.lee@samsung.com>
Tue, 23 Apr 2013 10:14:12 +0000 (19:14 +0900)
Change-Id: I70edcd2a7b4abf3c50b8562ce3b3b74bc7898212

LICENSE.Flora
NOTICE.Flora [deleted file]
config.xml
css/style.css
icon.png [changed mode: 0755->0644]
js/app.ui.js
js/main.js

index 9c95663..fd90a36 100644 (file)
@@ -1,6 +1,6 @@
 Flora License
 
-Version 1.0, May, 2012
+Version 1.0, April, 2013
 
 http://floralicense.org/license/
 
@@ -67,8 +67,8 @@ on behalf of whom a Contribution has been received by Licensor and
 subsequently incorporated within the Work.
 
 "Tizen Certified Platform" shall mean a software platform that complies
-with the standards set forth in the Compatibility Definition Document
-and passes the Compatibility Test Suite as defined from time to time
+with the standards set forth in the Tizen Compliance Specification
+and passes the Tizen Compliance Tests as defined from time to time
 by the Tizen Technical Steering Group and certified by the Tizen
 Association or its designated agent.
 
diff --git a/NOTICE.Flora b/NOTICE.Flora
deleted file mode 100644 (file)
index fdb699a..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
-Except as noted, this software is licensed under Flora License, Version 1.
-Please, see the LICENSE file for Flora License terms and conditions.
-
index 288176b..38e005c 100644 (file)
@@ -1,42 +1,49 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://sample-web-application.tizen.org/contacts-exchanger" version="2.1.0" viewmodes="maximized">
-       <tizen:application id="CUflbBqLYv.ContactsExchanger" package="CUflbBqLYv" required_version="2.1"/>
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"
+       id="http://sample-web-application.tizen.org/contacts-exchanger"
+       version="2.1.0" viewmodes="maximized">
        <tizen:app-control>
-               <tizen:src name="index.html"/>
-               <tizen:operation name="http://tizen.org/appcontrol/operation/nfc_empty_type"/>
-               <tizen:uri name=""/>
-               <tizen:mime name="*/*"/>
+               <tizen:src name="index.html" />
+               <tizen:operation
+                       name="http://tizen.org/appcontrol/operation/nfc_empty_type" />
+               <tizen:uri name="" />
+               <tizen:mime name="*/*" />
        </tizen:app-control>
        <tizen:app-control>
-               <tizen:src name="index.html"/>
-               <tizen:operation name="http://tizen.org/appcontrol/operation/nfc_well_known_type"/>
-               <tizen:uri name=""/>
-               <tizen:mime name="*/*"/>
+               <tizen:src name="index.html" />
+               <tizen:operation
+                       name="http://tizen.org/appcontrol/operation/nfc_well_known_type" />
+               <tizen:uri name="" />
+               <tizen:mime name="*/*" />
        </tizen:app-control>
        <tizen:app-control>
-               <tizen:src name="index.html"/>
-               <tizen:operation name="http://tizen.org/appcontrol/operation/nfc_mime_type"/>
-               <tizen:uri name=""/>
-               <tizen:mime name="*/*"/>
+               <tizen:src name="index.html" />
+               <tizen:operation name="http://tizen.org/appcontrol/operation/nfc_mime_type" />
+               <tizen:uri name="" />
+               <tizen:mime name="*/*" />
        </tizen:app-control>
        <tizen:app-control>
-               <tizen:src name="index.html"/>
-               <tizen:operation name="http://tizen.org/appcontrol/operation/nfc_uri_type"/>
-               <tizen:uri name=""/>
-               <tizen:mime name="*/*"/>
+               <tizen:src name="index.html" />
+               <tizen:operation name="http://tizen.org/appcontrol/operation/nfc_uri_type" />
+               <tizen:uri name="" />
+               <tizen:mime name="*/*" />
        </tizen:app-control>
-       <content src="index.html"/>
-       <icon src="icon.png"/>
+       <tizen:application id="CUflbBqLYv.ContactsExchanger"
+               package="CUflbBqLYv" required_version="2.1" />
+       <content src="index.html" />
+       <icon src="icon.png" />
        <name>ContactsExchanger</name>
-       <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
-       <tizen:privilege name="http://tizen.org/privilege/application.read"/>
-       <tizen:privilege name="http://tizen.org/privilege/contact.read"/>
-       <tizen:privilege name="http://tizen.org/privilege/contact.write"/>
-       <tizen:privilege name="http://tizen.org/privilege/nfc.admin"/>
-       <tizen:privilege name="http://tizen.org/privilege/nfc.common"/>
-       <tizen:privilege name="http://tizen.org/privilege/nfc.cardemulation"/>
-       <tizen:privilege name="http://tizen.org/privilege/nfc.common"/>
-       <tizen:privilege name="http://tizen.org/privilege/nfc.p2p"/>
-       <tizen:privilege name="http://tizen.org/privilege/nfc.tag"/>
-       <tizen:setting screen-orientation="portrait" context-menu="disable" background-support="enable" encryption="disable" install-location="auto"/>
+       <tizen:privilege name="http://tizen.org/privilege/application.launch" />
+       <tizen:privilege name="http://tizen.org/privilege/application.read" />
+       <tizen:privilege name="http://tizen.org/privilege/contact.read" />
+       <tizen:privilege name="http://tizen.org/privilege/contact.write" />
+       <tizen:privilege name="http://tizen.org/privilege/nfc.admin" />
+       <tizen:privilege name="http://tizen.org/privilege/nfc.common" />
+       <tizen:privilege name="http://tizen.org/privilege/nfc.cardemulation" />
+       <tizen:privilege name="http://tizen.org/privilege/nfc.common" />
+       <tizen:privilege name="http://tizen.org/privilege/nfc.p2p" />
+       <tizen:privilege name="http://tizen.org/privilege/nfc.tag" />
+       <tizen:setting screen-orientation="portrait"
+               context-menu="disable" background-support="enable" encryption="disable"
+               install-location="auto" />
 </widget>
index 37b74db..6f676be 100644 (file)
        display: table-cell;
        vertical-align: middle;
        height: inherit;
-       width: 100%;
-       min-width: 296px;
+       width: 296px;
        text-align: center;
 }
 
+#waitingBox {
+       display: none;
+}
+
 .gap {
        width: 100%;
        height: 10px;
old mode 100755 (executable)
new mode 100644 (file)
index 983c883..33fbb63
Binary files a/icon.png and b/icon.png differ
index 21ea867..1f513ec 100644 (file)
@@ -110,7 +110,7 @@ App.Ui = null;
                        waitingBox.append(waitingContent);
                        contentTransfer.append(waitingBox);
                        $('#content-start').trigger('create');
-
+                       $('#waitingBox').css("display", "table-cell");
                        this.app.countDown(10, $('#counter'));
                },
 
@@ -501,20 +501,25 @@ App.Ui = null;
                        });
 
                        $('#transfer').on('pageshow', function () {
-                               try {
-                                       var option = $(this).data('option');
-                                       if (option === 'read') {
-                                               self.prepareWaitingPage('Card to Device', 'PUT WIRELESS TAG<br>CLOSE TO<br>YOUR DEVICE');
-                                               self.app.nfc.card.setTagDetectRead();
-                                       } else if (option === 'write') {
-                                               self.prepareWaitingPage('Device to Card', 'PUT WIRELESS TAG<br>CLOSE TO<br>YOUR DEVICE');
-                                               self.app.nfc.card.setTagDetectWrite();
-                                       } else {
-                                               self.prepareWaitingPage('Device to Device', 'PUT YOUR DEVICE<br>CLOSE TO<br>OTHER DEVICE');
-                                               self.app.nfc.peer.setTargetDetect();
+                               if (tizen.nfc.getDefaultAdapter().powered) {
+                                       try {
+                                               var option = $(this).data('option');
+                                               if (option === 'read') {
+                                                       self.prepareWaitingPage('Card to Device', 'PUT WIRELESS TAG<br>CLOSE TO<br>YOUR DEVICE');
+                                                       self.app.nfc.card.setTagDetectRead();
+                                               } else if (option === 'write') {
+                                                       self.prepareWaitingPage('Device to Card', 'PUT WIRELESS TAG<br>CLOSE TO<br>YOUR DEVICE');
+                                                       self.app.nfc.card.setTagDetectWrite();
+                                               } else {
+                                                       self.prepareWaitingPage('Device to Device', 'PUT YOUR DEVICE<br>CLOSE TO<br>OTHER DEVICE');
+                                                       self.app.nfc.peer.setTargetDetect();
+                                               }
+                                       } catch (e) {
+                                               console.error(e.message);
                                        }
-                               } catch (e) {
-                                       console.error(e.message);
+                               } else {
+                                       $.mobile.changePage('#start');
+                                       alert('Please turn on NFC adapter');
                                }
                        });
                }
index 1932e73..49c65d7 100644 (file)
@@ -5,7 +5,7 @@
  *      you may not use this file except in compliance with the License.
  *      You may obtain a copy of the License at
  *
- *              http://www.tizenopensource.org/license
+ *              http://floralicense.org/license
  *
  *      Unless required by applicable law or agreed to in writing, software
  *      distributed under the License is distributed on an "AS IS" BASIS,