As to XWalkVew/WebView,  XWalkView/Webview(Android View) is highly coupled with 
Android Window system,  they both needs some kind of window(Such as 
Activity/PopupWindow/Dialog) .
So if you want to use XWalkView/Webview, you need first setup a Window.

I am not clear your use case and the service you referred, here are my  
suggestions:
1, Check if your service if has some kind of Window. If not, create a 
PopupWindow/Dialog in your Service.  Or you may also refer to the 
InputMethodService of Android system,  it is a service but with a  highly 
customized "Window".
You can put view into these kind of window.  If you try this way, it seems this 
is more like an Android issue instead of a crosswalk/chrome issue.

2, you may try low level API of chrome instead of XWalkView.  One option is 
content API.
We are collecting information about background render API based on content API. 
 We are intent to make these API View-unrelated. But this is far from being 
done.
We just have some ideas about this.  And we also need to prove if this is 
necessary. If you can share your use case, it would be a  big plus.


Regards,
Xing

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of 
Jonathon Gray
Sent: Thursday, January 7, 2016 1:48 AM
To: [email protected]
Subject: [Crosswalk-help] Trouble creating XWalkView

Hello All,
I am working at replacing the native WebView in an app with XWalkViews.  In the 
app we must be able to create WebViews/XWalkViews from within our services.  I 
looked for information regarding how this could be done but found very little.  
I did find a previous email sent to this mailing list in February ( 
https://lists.crosswalk-project.org/pipermail/crosswalk-help/2015-February/000827.html).
  Is there a  workaround that you know of to be able to create an XWalkView 
from within a service?  If there is any other information you need, please do 
not hesitate to ask.  Thank you.

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

Reply via email to