Using Crosswalk in an Android Cordova Project with Embedded WebView -


i have existing android cordova project uses embedded webview. means activity not extend cordovaactivity, instead embeds systemwebview , initializes within oncreate.

the following how being done:

within layout xml file

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent" >    .... other layout elements not related cordova....      <org.apache.cordova.engine.systemwebview         android:id="@+id/cdvwebview"         android:layout_width="fill_parent"         android:layout_height="fill_parent" /> </relativelayout> 

within activity's oncreate:

systemwebview systemwebview = (systemwebview) findviewbyid(r.id.cdvwebview); cordovawebview cdvwebview = new cordovawebviewimpl(new systemwebviewengine(systemwebview));  configxmlparser parser = new configxmlparser(); parser.parse(this);  cdvwebview.init(this, parser.getpluginentries(), parser.getpreferences()); 

due the bug in lollipop versions 5.0.+ missing "set" button, want implement crosswalk plugin project.

unfortunately, documentation i'm finding assumes typical cordova install being used. haven't been able embedding , initialization of xwalkwebview working correctly , keep getting blank white screen.

has has success similar scenario?

i'm not sure, might answer question. seems show implementing xwalkwebview outside of typical cordova project:

https://github.com/kurli/crosswalk-website/wiki/how-to-use-crosswalk-embedded-api-on-android


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -