incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-515) getIntent() needed in CordovaInterface.java on Android
Date Fri, 20 Apr 2012 16:34:47 GMT

    [ https://issues.apache.org/jira/browse/CB-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258359#comment-13258359
] 

Simon MacDonald commented on CB-515:
------------------------------------

In the mean time where you see:

this.ctx.getIntent()

replace it with:

((DroidGap)this.ctx).getIntent()
                
> getIntent() needed in CordovaInterface.java on Android
> ------------------------------------------------------
>
>                 Key: CB-515
>                 URL: https://issues.apache.org/jira/browse/CB-515
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.6.0
>         Environment: Android
>            Reporter: Philip Abrahamson
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: android, patch, plugin
>             Fix For: 1.8.0
>
>         Attachments: WebIntent.diff
>
>
> The plugin "WebIntent" for Android stopped working sometime after 0.96 because the CordovaInterface.java
file does not include getIntent().  This plugin is useful in particular because it allows
users to call their android application from e.g. an email link, and parse any arguments passed
to the application in the URL.
> The following patch fixes this issue:
> --- a/framework/src/org/apache/cordova/api/CordovaInterface.java
> +++ b/framework/src/org/apache/cordova/api/CordovaInterface.java
> @@ -143,5 +143,7 @@ public interface CordovaInterface {
>      public abstract Context getApplicationContext();
>  
>      public abstract boolean isUrlWhiteListed(String source);
> +
> +    public abstract Intent getIntent();
>   
>  }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message