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

ASF GitHub Bot commented on CB-7265:
------------------------------------

GitHub user mbektchiev opened a pull request:

    https://github.com/apache/cordova-android/pull/111

    CB-7265: Fix crash in shouldOverrideUrlLoading on Android < 4.0.3

    Application built with Cordova 3.5.1 running on a device with Android < 
4.0.3 crashes when the webview is redirected to a custom url scheme. See 
https://issues.apache.org/jira/browse/CB-7265
    More easily reproducible by adding the following line in JS: 
    `window.location="custom://";`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Icenium/cordova-android 
bektchiev/CB-7265-custom-url-scheme-crash

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-android/pull/111.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #111
    
----
commit 28111dafa2b3e44d07f947c784c932b6e4ee2159
Author: Martin Bektchiev <[email protected]>
Date:   2014-08-06T12:24:51Z

    CB-7265: Fix crash on Android < 4.0.3

----


> Application built with Cordova 3.5.1 running on a device with Android < 4.0.3 
> crashes when the webview is redirected to a custom url scheme
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-7265
>                 URL: https://issues.apache.org/jira/browse/CB-7265
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.5.0
>            Reporter: Martin Bektchiev
>
> To reproduce add the jsHybugger plugin 
> (https://github.com/jsHybugger/cordova-plugin-jshybugger) to any Cordova 
> application and run it on an Android device with version < 4.0.3. The reason 
> for the crash is the missing "android.content.Intent.setSelector" method:
> FATAL EXCEPTION: main
> java.lang.NoSuchMethodError: android.content.Intent.setSelector
>        at 
> org.apache.cordova.CordovaUriHelper.shouldOverrideUrlLoading(CordovaUriHelper.java:103)
>        at 
> org.apache.cordova.CordovaWebViewClient.shouldOverrideUrlLoading(CordovaWebViewClient.java:131)
>        at 
> android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:218)
>        at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:337)
>        at android.os.Handler.dispatchMessage(Handler.java:99)
>        at android.os.Looper.loop(Looper.java:123)
>        at android.app.ActivityThread.main(ActivityThread.java:3691)
>        at java.lang.reflect.Method.invokeNative(Native Method)
>        at java.lang.reflect.Method.invoke(Method.java:507)
>        at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
>        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
>        at dalvik.system.NativeStart.main(Native Method)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to