[
https://issues.apache.org/jira/browse/CB-4057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696656#comment-13696656
]
VERGNES Denis commented on CB-4057:
-----------------------------------
I understand your point but the problem is the workload to implement the
CordovaInterface is enough significant to be not so interesting. Especially, we
will mainly "copy" the implementation provided by the CordovaActivity.
Currently, we use the CordovaActivity even if we have also native views in our
application. So for the need of our project we need to patch onKeyDown and
onKeyUp to make it work. Except these methods at least for our use case the
rest worked like a charm. If you need a sample app to illustrate our use case,
I can prepare a simpler version of what we are doing.
You mentioned "extremely heavy modification", it seems to me we don't need
heavy modification to make this work but maybe we missed something. Have you
something particular in mind?
> Lately created webview can cause application crash
> --------------------------------------------------
>
> Key: CB-4057
> URL: https://issues.apache.org/jira/browse/CB-4057
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Reporter: VERGNES Denis
> Assignee: Joe Bowser
>
> If the webview is lately created because application uses other native views
> to display data and the user press a key then the application will crash.
> Therefore, onKeyUp, onKeyDown and onActivityResult in CordovaActivity should
> first check the webview is not null before interacting with it. By the way,
> other places in CordovaActivity where appView are protected to prevent NPE.
--
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