Problem is: I cannot see the content of a CrossWalk WebView using Chromes DevTools (chrome://inspect/#devices). Neither local websites (like image below) , nor external like google.com. But it is working for the standalone chrome.apk.
https://i.stack.imgur.com/nxdB6.jpg
Configuration: Chrome for Linux v. 37.0.2062.94
Crosswalk prebuild: crosswalk-webview-9.38.199.0-arm
Android 4.4.2/4.0.3
ADB Debugging working fine. Javascript console logs are working. I can see the page on my phone.
Creating the webview
public class CrosswalkActivity extends Activity {
private final String TAG = "CrosswalkActivity";
private XWalkView xWalkView;
public static Context context;
@Override
protected void onCreate(Bundle savedInstanceState) {
context = getApplicationContext();
super.onCreate(savedInstanceState);
setContentView(R.layout.xwalkview);
xWalkView = (XWalkView) findViewById(R.id.xWalkView);
String index = FileManager.getAssetPath(context, "index.html");
Log.i(TAG, "Loading: " + index);
this.configureWebView();
xWalkView.load("file://" + index, null);
}
private Boolean configureWebView() {
try{
xWalkView.addJavascriptInterface(new JSInterface(CrosswalkActivity.context),"JSInterface");
xWalkView.setKeepScreenOn(true);
XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true);
return true;
}
catch(Exception e){
Log.e(TAG, e.getMessage());
return false;
}
}
}