Firs of all, thanks for the links.
From the embedding api sample code I could see how to handle the
XWalkView from an activity, I am using fragments so I moved it to the
activity and then I get the view from the fragment. I also added the
clients as XWalk 6 requires with the classes.
I tried with the following 3 versions:
-stable 4.32.76.6: Is the version that works perfectly for me but *I
can't use chromium command lines to skip the gpu blacklist*.
-stable 5.34.104.5: still uses the old system (JavascriptInterface,
clients, loadUrl()...) but I already have the problem: _when the
fragment loads, the url is loaded but it shows only the white
background, when I touch a slidder that modifies the browser size, then
it shows the webgl model_.
-beta 6.35.131.4: with the new system (JavascriptInterface, clients,
load()...), I get a similar result than before, it loads in white until
the browser is resized.
I was planning to post this in the bug track of XWalk 6 but it fails
also with stable version 5, then I guess is not a bug but something of
the migration that I am missing.
I get some errors in the logcat that are shown only in the failing
versions and at the first run, when I resize the browser to see the
model, it does not send any message to debugger.
Here the logfile of version ok 4.32.76.6:
05-13 10:47:39.057: W/IconCustomizer(13280): can't load transform_config.xml
05-13 10:47:39.357: D/dalvikvm(13280): GC_FOR_ALLOC freed 962K, 9% free
12714K/13856K, paused 9ms, total 12ms
05-13 10:47:39.457: D/dalvikvm(13280): GC_FOR_ALLOC freed 1403K, 13%
free 16616K/18948K, paused 8ms, total 8ms
05-13 10:47:39.527: I/LibraryLoader(13280): Loading: xwalkcore
05-13 10:47:39.527: D/dalvikvm(13280): Trying to load lib
/data/app-lib/cs.si.satatt-2/libxwalkcore.so 0x42640908
05-13 10:47:39.547: D/dalvikvm(13280): Added shared lib
/data/app-lib/cs.si.satatt-2/libxwalkcore.so 0x42640908
05-13 10:47:39.557: I/LibraryLoader(13280): Time to load native
libraries: 23 ms (timestamps 9540-9563)
05-13 10:47:39.557: I/chromium(13280):
[INFO:library_loader_hooks.cc(115)] Chromium logging enabled: level = 0,
default verbosity = 0
05-13 10:47:39.577: I/BrowserStartupController(13280): Initializing
chromium process, renderers=0
05-13 10:47:39.737: D/libEGL(13280): loaded /vendor/lib/egl/libEGL_adreno.so
05-13 10:47:39.737: D/libEGL(13280): loaded
/vendor/lib/egl/libGLESv1_CM_adreno.so
05-13 10:47:39.737: D/libEGL(13280): loaded
/vendor/lib/egl/libGLESv2_adreno.so
05-13 10:47:39.747: I/Adreno-EGL(13280): <qeglDrvAPI_eglInitialize:381>:
EGL 1.4 QUALCOMM build:
RGURRAM_AU_LINUX_ANDROID_JB_3.2.5_RB1.04.03.00.182.007+PATCH[ES]_msm8974_JB_3.2.5_RB1__release_ENGG
()
05-13 10:47:39.747: I/Adreno-EGL(13280): OpenGL ES Shader Compiler
Version: 20.00.06
05-13 10:47:39.747: I/Adreno-EGL(13280): Build Date: 02/27/14 Thu
05-13 10:47:39.747: I/Adreno-EGL(13280): Local Branch:
05-13 10:47:39.747: I/Adreno-EGL(13280): Remote Branch: quic/jb_3.2.5_rb1.10
05-13 10:47:39.747: I/Adreno-EGL(13280): Local Patches:
b2a30cb2043e9774e77545e186fc92b501177e86 Support RGBx8 src format in
neon path in rb_cpu_readpixels()
05-13 10:47:39.747: I/Adreno-EGL(13280): Reconstruct Branch: LOCAL_PATCH[ES]
05-13 10:47:39.817: W/chromium(13280): [WARNING:proxy_service.cc(890)]
PAC support disabled because there is no system implementation
05-13 10:47:40.567: D/OpenGLRenderer(13280): Enabling debug mode 0
05-13 10:47:44.327: D/dalvikvm(13280): GC_FOR_ALLOC freed 3538K, 15%
free 21233K/24812K, paused 15ms, total 15ms
05-13 10:47:44.547: I/UAJscriptHandler(13280): script handler created
05-13 10:47:44.627: I/Choreographer(13280): Skipped 36 frames! The
application may be doing too much work on its main thread.
05-13 10:47:44.787: I/chromium(13280):
[INFO:xwalk_extension_renderer_controller.cc(44)] EXTENSION PROCESS
DISABLED.
05-13 10:47:45.097: I/chromium(13280): [INFO:CONSOLE(1)] "Uncaught
ReferenceError: changeView is not defined", source: (1)
05-13 10:47:45.827: I/chromium(13280): [INFO:CONSOLE(20271)]
"THREE.WebGLRenderer", source: file:///android_asset/www/js/myThree.js
(20271)
05-13 10:47:45.847: I/chromium(13280): [INFO:CONSOLE(26759)]
"THREE.WebGLRenderer: S3TC compressed textures not supported.", source:
file:///android_asset/www/js/myThree.js (26759)
05-13 10:47:45.877: I/chromium(13280): [INFO:SkUtilsArm.cpp(177)] Device
supports ARM NEON instructions!
05-13 10:47:46.397: I/chromium(13280):
[INFO:SkFontConfigInterface_android.cpp(227)] ---- system font and
fallback font files specify a duplicate font
/system/fonts/Roboto-Regular.ttf, skipping the second occurrence
05-13 10:47:46.397: I/chromium(13280):
[INFO:SkFontConfigInterface_android.cpp(227)] ---- system font and
fallback font files specify a duplicate font
/system/fonts/Roboto-Bold.ttf, skipping the second occurrence
And here of failing version 6.35.131.4 (similiar logfile for 5.34.104.5)
05-13 09:27:04.317: D/INSTALLER(13116): Orekit data files are already
installed...
05-13 09:27:04.667: D/dalvikvm(13116): GC_FOR_ALLOC freed 3859K, 10%
free 37715K/41608K, paused 30ms, total 34ms
05-13 09:27:04.807: D/dalvikvm(13116): GC_FOR_ALLOC freed 675K, 6% free
45613K/48352K, paused 12ms, total 12ms
05-13 09:27:05.737: E/XWalkExtensionManager(13116): Failed to read JS
API file: jsapi/contacts_api.js
05-13 09:27:05.747: E/XWalkExtensionManager(13116): Failed to read JS
API file: jsapi/messaging_api.js
05-13 09:27:05.747: E/XWalkExtensionManager(13116): Failed to read
extensions-config.json
05-13 09:27:05.747: I/UAJscriptHandler(13116): script handler created
05-13 09:27:05.777: I/Choreographer(13116): Skipped 92 frames! The
application may be doing too much work on its main thread.
05-13 09:27:06.177: W/Adreno-EGL(13116):
<qeglDrvAPI_eglSwapInterval:3897>: EGL_BAD_SURFACE
05-13 09:27:06.177: E/chromium(13116): [ERROR:gl_context_egl.cc(177)]
eglSwapInterval failed with error EGL_BAD_SURFACE
05-13 09:27:06.187: W/BindingManager(13116): Cannot setInForeground() -
never saw a connection for the pid: 13116
05-13 09:27:06.727: I/chromium(13116): [INFO:CONSOLE(1)] "Uncaught
ReferenceError: changeView is not defined", source: (1)
I couldn't fine information about this extensions for embedded api.
Regards,
Xavier Gibert
On 13/05/2014 03:40, Zhu, Yongsheng wrote:
Sorry for the last incomplete mail.
1.We've published it and there are API documentation, sample code and
sample project for how to use embedding API. See below link:
https://crosswalk-project.org/#documentation/apis/embedding_api
2.Here is how to import embedding API as an Android library project
and some details:
https://crosswalk-project.org/#wiki/How-to-use-Crosswalk-Embedding-API-on-Android
3.We've a design doc for the embedding API. Welcome to post new
requirements and comments there:
https://docs.google.com/document/d/15J--k92QrYvlDWRULZf8JgD6awAcwvO98ezkBoR55pY
4.If any issues, will you please help report them here:
https://crosswalk-project.org/jira/
5.About 'loadUrl()', it's the similar to load() except the parameters.
It's changed not only for url but also for local resources.
6.About loading local files, if they're in sdcard, I believe you may
add the permission in your AndroidManifest.xml:
android.permission.READ_EXTERNAL_STORAGE
Thanks a lot.
Yongsheng
*From:*Zhu, Yongsheng
*Sent:* Tuesday, May 13, 2014 9:28 AM
*To:* 'Xavier Gibert'; [email protected]
*Subject:* RE: [Crosswalk-dev] loadUrl() in Xwalk6
Hi,
https://crosswalk-project.org/#documentation/apis/embedding_api
https://github.com/kurli/crosswalk-website/wiki/How-to-use-Crosswalk-Embedded-API-on-Android
thanks for trying Crosswalk.
Yongsheng
*From:*Crosswalk-dev
[mailto:[email protected]] *On Behalf
Of *Xavier Gibert
*Sent:* Monday, May 12, 2014 6:37 PM
*To:* [email protected]
<mailto:[email protected]>
*Subject:* [Crosswalk-dev] loadUrl() in Xwalk6
Hello,
I was using an older version of the xwalk-core-library, today I saw
the new beta version 6.35.131.4 and I wanted to upgrade to it.
Some problems appeared when establishing the *client and chromeclient*
(names or location of classes changed). I would like to have an
example with this new syntaxis or to know where is the corresponding
documentation please.
The other biggest problem that I have is that the method *loadUrl()*
appears as undefined for XWalkView. If I use the method
load(url,content) I need to add a new permission
(ACCESS_NETWORK_STATUS) and actually it doesn't work properly when
loading local files (It does not show the page until it is resized or
something like that). Is there any reason why loadUrl has disapeared?
I saw some posts talking about extending DroidGap class but I'm not
sure that this applies here since it was working before without
extending it.
I am using the XWalkView inside a Fragment.
Regards.
--
--
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev