incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bcur...@apache.org
Subject android commit: CB-800: Fix preferences for the CordovaWebView. - Test case needed to implement CordovaInterface.
Date Thu, 17 May 2012 03:46:06 GMT
Updated Branches:
  refs/heads/CordovaWebView ffa1eb1ee -> f74d8aaf2


CB-800: Fix preferences for the CordovaWebView. - Test case needed to implement CordovaInterface.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/f74d8aaf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/f74d8aaf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/f74d8aaf

Branch: refs/heads/CordovaWebView
Commit: f74d8aaf2b00a40ac7b855b4bd15eaa19d6ef0eb
Parents: ffa1eb1
Author: Bryce Curtis <curtis.bryce@gmail.com>
Authored: Wed May 16 22:45:35 2012 -0500
Committer: Bryce Curtis <curtis.bryce@gmail.com>
Committed: Wed May 16 22:45:35 2012 -0500

----------------------------------------------------------------------
 .../org/apache/cordova/test/CordovaActivity.java   |    2 +-
 .../cordova/test/CordovaWebViewTestActivity.java   |   60 +++++++++++++--
 2 files changed, 55 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/f74d8aaf/test/src/org/apache/cordova/test/CordovaActivity.java
----------------------------------------------------------------------
diff --git a/test/src/org/apache/cordova/test/CordovaActivity.java b/test/src/org/apache/cordova/test/CordovaActivity.java
index 0bb3dba..f3a7839 100644
--- a/test/src/org/apache/cordova/test/CordovaActivity.java
+++ b/test/src/org/apache/cordova/test/CordovaActivity.java
@@ -28,6 +28,6 @@ public class CordovaActivity extends DroidGap {
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
-        super.loadUrl("file:///android_asset/index.html");
+        super.loadUrl("file:///android_asset/www/index.html");
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/f74d8aaf/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
----------------------------------------------------------------------
diff --git a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
index 6c5f5c9..2452377 100644
--- a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
+++ b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
@@ -20,28 +20,76 @@
 package org.apache.cordova.test;
 
 import org.apache.cordova.CordovaWebView;
+import org.apache.cordova.api.CordovaInterface;
+import org.apache.cordova.api.IPlugin;
 
 import android.app.Activity;
+import android.content.Intent;
 import android.os.Bundle;
+import android.util.Log;
+
+public class CordovaWebViewTestActivity extends Activity implements CordovaInterface {
 
-public class CordovaWebViewTestActivity extends Activity {
-    
     CordovaWebView phoneGap;
+
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
+
         setContentView(R.layout.main);
-        
+
         phoneGap = (CordovaWebView) findViewById(R.id.phoneGapView);
-        
+
         phoneGap.loadUrl("file:///android_asset/www/index.html");
-        
+
     }
-    
+
     public void onDestroy()
     {
         super.onDestroy();
         //phoneGap.onDestroy();
     }
+
+    @Override
+    public void startActivityForResult(IPlugin command, Intent intent, int requestCode) {
+        // TODO Auto-generated method stub
+
+    }
+
+    @Override
+    public void setActivityResultCallback(IPlugin plugin) {
+        // TODO Auto-generated method stub
+
+    }
+
+    @Override
+    public void bindBackButton(boolean override) {
+        // TODO Auto-generated method stub
+
+    }
+
+    @Override
+    public boolean isBackButtonBound() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
+    @Override
+    public Activity getActivity() {
+        // TODO Auto-generated method stub
+        return this;
+    }
+
+    @Override
+    public void cancelLoadUrl() {
+        // TODO Auto-generated method stub
+
+    }
+
+    @Override
+    public Object onMessage(String id, Object data) {
+        // TODO Auto-generated method stub
+        return null;
+    }
 }
\ No newline at end of file


Mime
View raw message