I didn't see any kind of Window in your code. You have some RelativeLayout and 
Views, they are all Views, not Window MENTIONED BEFORE.

You may also replace it with WebView in your cod, I think it will crash too.

As to how to show a View from a service, you may refer to 
http://stackoverflow.com/questions/7678356/launch-popup-window-from-service

Regards,
Xing
From: Jonathon Gray [mailto:[email protected]]
Sent: Thursday, January 21, 2016 3:21 PM
To: Xu, Xing; [email protected]
Subject: Re: Trouble creating XWalkView


Thank you for such a thorough response and I am sorry for such a delay in 
responding.



To your first point, we are actually using a window.  I have a mini-project 
that demonstrates how we are using Crosswalk and how it is crashing.  I have 
attached it along with the crash log.  I am very thankful for your help and all 
your suggestions.



Thanks,

Jonathon

________________________________
From: Xu, Xing <[email protected]<mailto:[email protected]>>
Sent: Thursday, January 7, 2016 6:33 PM
To: Jonathon Gray; 
[email protected]<mailto:[email protected]>
Subject: RE: Trouble creating XWalkView


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]<mailto:[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