incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject android commit: Adding startActivity method to CordovaInterface as many plugins rely on this method
Date Mon, 27 Feb 2012 18:08:02 GMT
Updated Branches:
  refs/heads/master e918ffd75 -> 10cbcd7f5


Adding startActivity method to CordovaInterface as many plugins rely on this method


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/10cbcd7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/10cbcd7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/10cbcd7f

Branch: refs/heads/master
Commit: 10cbcd7f5a4ab67359ac2c0798783010a8fb73ba
Parents: e918ffd
Author: macdonst <simon.macdonald@gmail.com>
Authored: Mon Feb 27 13:07:56 2012 -0500
Committer: macdonst <simon.macdonald@gmail.com>
Committed: Mon Feb 27 13:07:56 2012 -0500

----------------------------------------------------------------------
 .../org/apache/cordova/api/CordovaInterface.java   |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/10cbcd7f/framework/src/org/apache/cordova/api/CordovaInterface.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/api/CordovaInterface.java b/framework/src/org/apache/cordova/api/CordovaInterface.java
index f46058f..0cf8bb2 100755
--- a/framework/src/org/apache/cordova/api/CordovaInterface.java
+++ b/framework/src/org/apache/cordova/api/CordovaInterface.java
@@ -70,6 +70,13 @@ public interface CordovaInterface {
     abstract public void startActivityForResult(IPlugin command, Intent intent, int requestCode);
 
     /**
+     * Launch an activity for which you would not like a result when it finished. 
+     *  
+     * @param intent            The intent to start
+     */
+    abstract public void startActivity(Intent intent);
+    
+    /**
      * Set the plugin to be called when a sub-activity exits.
      * 
      * @param plugin			The plugin on which onActivityResult is to be called


Mime
View raw message