You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew (JIRA)" <ji...@apache.org> on 2013/05/24 19:47:21 UTC

[jira] [Commented] (CB-3504) Cordova 2.7.0 uses WebResourceResponse which is only avalable in API Level 11

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

Andrew commented on CB-3504:
----------------------------

That's strange.  I thought the whole point of the API levels was that it was impossible to use future APIs on devices that only support a previous version of the API.  How do the non-Galaxy S phones know how to handle missing classes that don't exist?  Is there some sort of fallback or conditional import system?  I'd love to read about how the Android devs do this if you can point me to code and/or docs about this.
                
> Cordova 2.7.0 uses WebResourceResponse which is only avalable in API Level 11
> -----------------------------------------------------------------------------
>
>                 Key: CB-3504
>                 URL: https://issues.apache.org/jira/browse/CB-3504
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.7.0
>            Reporter: Andrew
>            Assignee: Joe Bowser
>            Priority: Minor
>
> In CordovaWebViewClient.java, android.webkit.WebResourceResponse is imported and used by the methods shouldInterceptRequest and getWhitelistResponse.  But since android.webkit.WebResourceResponse is only available on devices >= API Level 11, this causes cordova apps to crash on devices at a lower API Level like my Samsung Galaxy S.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira