Updated Private -> RSA
authorji.ji <ji.ji@samsung.com>
Wed, 26 Jun 2013 10:09:53 +0000 (19:09 +0900)
committerji.ji <ji.ji@samsung.com>
Wed, 26 Jun 2013 10:09:53 +0000 (19:09 +0900)
Change-Id: If045be108e549cfc20a2298c0056210051446429

.project [new file with mode: 0644]
config.xml
index.html
js/main.js

diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..4af25b2
--- /dev/null
+++ b/.project
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>Systeminfo</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>json.validation.builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.tizen.web.jslint.nature.JSLintBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.tizen.web.editor.css.nature.CSSBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.wst.validation.validationbuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.tizen.web.project.builder.WebBuilder</name>
+                       <arguments>
+                               <dictionary>
+                                       <key>usedLibraryType</key>
+                                       <value>WebUIFramework</value>
+                               </dictionary>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>json.validation.nature</nature>
+               <nature>org.tizen.web.jslint.nature.JSLintNature</nature>
+               <nature>org.tizen.web.editor.css.nature.CSSNature</nature>
+               <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+               <nature>org.tizen.web.project.builder.WebNature</nature>
+       </natures>
+</projectDescription>
index 5d0198e..12297ae 100755 (executable)
@@ -1,8 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" version="0.1.7" id="http://tizen.org/wid/Systeminfo" viewmodes="maximized">
-       <name>Systeminfo</name>
-       <icon src="icon.png"/>
-       <content src="index.html"/>
-       <tizen:application id="samplesysi.Systeminfo" package="samplesysi" required_version="2.1"/>
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/Systeminfo" version="0.1.7" viewmodes="maximized">
+    <tizen:application id="nGZWgKPPAa.Systeminfo" package="nGZWgKPPAa" required_version="2.2"/>
+    <content src="index.html"/>
+    <icon src="icon.png"/>
+    <name>Systeminfo</name>
+        
+        
+        
+        
 </widget>
index 73f21e2..4ae23d8 100755 (executable)
@@ -13,9 +13,9 @@
 </head>
 
 <body>
-       <div data-role="page" id="main" data-add-back-btn="true">
+       <div data-role="page" id="main" data-add-back-btn="header">
                <div data-role="header" data-position="fixed">
-                       <h1>SYSTEM INFORMATION</h1>
+                       <h1>System information</h1>
                </div>
 
                <div data-role="content">
@@ -32,7 +32,7 @@
                </div>
        </div>
 
-       <div data-role="page" id="info" data-add-back-btn="true">
+       <div data-role="page" id="info" data-add-back-btn="header">
                <div data-role="header" data-position="fixed">
                        <h1 id="info-title"></h1>
                </div>
index b8f2936..c2e4750 100644 (file)
@@ -42,6 +42,16 @@ $(document).delegate("#main", "pageinit", function() {
                getSystemProperty("DEVICE_ORIENTATION", onOrientationSuccess);
                return false;
        });
+
+       document.addEventListener('tizenhwkey', function (e) {
+               if (e.keyName === "back") {
+                       if ($.mobile.activePage.attr('id') === 'main') {
+                               tizen.application.getCurrentApplication().exit();
+                       } else {
+                               history.back();
+                       }
+               }
+       });
 });
 
 $(document).delegate("#info", "pageinit", function() {