Permalink
Browse files

phonegap-1.0.0rc1

  • Loading branch information...
1 parent 5fbc030 commit 4a0778228f554677637acb3cac74f14f55497267 @don don committed Jul 13, 2011
View
@@ -3,7 +3,7 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry kind="lib" path="/usr/local/phonegap/Android/phonegap.0.9.6.jar"/>
<classpathentry kind="lib" path="lib/phonegap-nfc.jar"/>
+ <classpathentry kind="lib" path="lib/phonegap-1.0.0rc1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
View
@@ -32,7 +32,7 @@
<application android:debuggable="true" android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:configChanges="orientation|keyboardHidden" android:name="P2PDemo"
- android:label="@string/app_name">
+ android:label="@string/app_name" android:screenOrientation="nosensor" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
View
@@ -5,7 +5,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8">
- <script type="text/javascript" charset="utf-8" src="phonegap.0.9.6.js"></script>
+ <script type="text/javascript" charset="utf-8" src="phonegap-1.0.0rc1.js"></script>
<script type="text/javascript" charset="utf-8" src="phonegap-nfc.js"></script>
<script type="text/javascript" charset="utf-8" src="main.js"></script>
</head>
View
@@ -5,7 +5,7 @@ function shareTag() {
payload = document.forms[0].elements["payload"].value,
record = Ndef.mimeMediaRecord(mimeType, Ndef.stringToBytes(payload));
- window.plugins.NdefPlugin.p2p(
+ navigator.nfc.p2p(
[record],
function () {
navigator.notification.vibrate(100);
@@ -26,7 +26,7 @@ var ready = function () {
alert('Failed to register NFC Listener');
}
- window.plugins.NdefPlugin.addNdefListener(function () { alert("Read NDEF Tag"); }, win, fail);
+ navigator.nfc.NdefPlugin.addNdefListener(function () { alert("Read NDEF Tag"); }, win, fail);
};
// deviceready is being called before the plugins finish initializing
View
@@ -7,7 +7,7 @@ p {
}
button {
- padding-top: 10px;
+/* padding-top: 10px;*/
font-size: 1.25em;
height: 50px;
width: 150px;
Oops, something went wrong.

0 comments on commit 4a07782

Please sign in to comment.