Hi Jonathon

Thanks for using Crosswalk. Which version you are using?
If you are using shared mode, you should use XWalkActivity, but not must in 
embedded mode, even its recommended .
For your case, here is the details of XWalkActivity, 
https://crosswalk-project.org/apis/embeddingapidocs_v5/
Could you try it, and give your feedback to use? Thanks.

Best Regards :)
Xiaofeng Zhang

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of 
Jonathon Gray
Sent: Friday, December 18, 2015 7:30 AM
To: [email protected]
Subject: [Crosswalk-help] Proper way of getting ready Status


Hello All,

We are trying to test out using Crosswalk instead of the native WebView and I 
am having a problem with trying to get the ready status of XWalk (either with 
XWalkActivity or XWalkInitializer) and cannot seem to get anywhere.  The 
JavaScriptInterface uses the JavaScriptService that creates an XWalkView,  
which then throws an error saying that I need to extend XWalkActivity.



Here is a snippet below.  The JavaScriptView then creates a custom WebView that 
inherits from XWalkView.  Please let me know if you have any advice.



Thanks,

Jonathon



public class JavaScriptService extends Service {

    private static JavaScriptService instance;
    ...

    ..

    .

    @Override
    public void onCreate() {

        isRunning = true;
        instance = this;

        javaScriptView = new JavaScriptView( getInstance() );

        super.onCreate();
    }

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to