cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6644) [amazon-fireos]Add a check for webview being null in template code
Date Sat, 10 May 2014 22:13:13 GMT

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

ASF subversion and git services commented on CB-6644:
-----------------------------------------------------

Commit 0ae3c2dc5ffa84ca8bb881c0144b976886179465 in cordova-amazon-fireos's branch refs/heads/master
from [~naika]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-amazon-fireos.git;h=0ae3c2d ]

[CB-6644][amazon-fireos]Add a check for webview being null in template code
Added a check and some comments to guide devs.


> [amazon-fireos]Add a check for webview being null in template code
> ------------------------------------------------------------------
>
>                 Key: CB-6644
>                 URL: https://issues.apache.org/jira/browse/CB-6644
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Amazon FireOS
>    Affects Versions: 3.4.0
>            Reporter: Archana Naik
>            Assignee: Archana Naik
>             Fix For: 3.5.0
>
>
> amazon-fireos uses AmazonWebView which provides chromium based webapp runtime. Port needs
webview sdk which ships with 2 different jars - awv_interface.jar and awv_android_factory.jar.
By default, adding amazon-fireos platform to the app copies awv_interface.jar to project's
libs folder so its bundled with the app. However, that means app will work on Kindle fire
devices but on generic android devices it will not. In order for it to work on android devices,
app developer needs to copy awv_android_factory.jar to libs folder so app will automatically
use fallback mechanism to instantiate stock android webview. 
> Now, in case of no fallback mechanism CordovaActivity's appview will be null so if developer
uses this.appview in onCreate() method app will crash. 
> Solution: add boilder plate code to check for this.appview not being null.



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

Mime
View raw message