Thanks, Shiliu. Xes, do you mean you're using the class XWalkRuntimeClient? Crosswalk Runtimelib could be embedded and we've a similar mechanism in our packaging tool(with command line option --mode=embedded). However, we don't provide it as a regular Android project. So here are two suggestions:
1) Use Crosswalk core library which is an Android library project and could be embedded in other Android application project. Find xwalk_core_library in the release package. The main view is XWalkView. We're working on providing an embedding API. See XWALK-957<https://crosswalk-project.org/jira/browse/XWALK-957>. 2) Follow up the way what we do in packaging tool for embedded mode: refer to build/android/generate_app_packaging_tool.py and ./app/tools/android/make_apk.py. The main issue here is, like Shiliu said, that resources and assets should be packed with your Android application together. Enjoy hacking Crosswalk! Yongsheng From: Crosswalk-help [mailto:[email protected]] On Behalf Of Wang, Shiliu Sent: Wednesday, March 05, 2014 9:38 AM To: Xes Garcia; [email protected] Subject: Re: [Crosswalk-help] embed crosswalk view in a native Android application Hi, Xes Thanks for using Crosswalk and giving us feedback. May I know the approach you are using to embed XWalkView? If you were hacking by directly importing the java sources, you need to put libxwalkcore.so into lib folder of your project and xwalk.pak into assets folder. I suggest you could apply your work based on the project generated by xwalk_app_template tool, you can refer https://crosswalk-project.org/#documentation/getting_started/run_on_android for the detail. Thanks, Shiliu. From: Crosswalk-help [mailto:[email protected]] On Behalf Of Xes Garcia Sent: Tuesday, March 4, 2014 9:20 PM To: [email protected]<mailto:[email protected]> Subject: [Crosswalk-help] embed crosswalk view in a native Android application Hi I've managed to embed a 'CrossWalkView' inside an Android app and it works great, finally webgl!, but I couldn't make it work without the external runtimelib installed How could I embed the runtimelib in a regular Android project and make it work? BTW great project congratulations
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
