Glad you fixed your issue.
On 24 June 2014 14:08, Bradley Behe <[email protected]> wrote:
> An unrelated question if you can help me, I'm trying to implement to
> connect to a webrtc server and just have do it by this
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.rtcview);
> mXWalkView = (XWalkView) findViewById(R.id.activity_main);
> mXWalkView.load("192.168.10.45:2013", null);
> }
> }
>
What are you trying to load? An HTML page which contains a WebRTC client
app?
As a minimum, you probably need to specify the scheme to use (http:// or
https://) if you're loading a web page.
If your code can be put somewhere public, I'd be happy to have a look (I've
been working on a WebRTC demo this week, in fact, so it's quite fresh in my
mind).
Elliot
>
> however, it doesn't work, it just displays a white screen, any suggestions?
>
>
>
> On Tue, Jun 24, 2014 at 1:39 AM, Wang, Shiliu <[email protected]>
> wrote:
>
>> Hi,
>>
>>
>>
>> Which build.xml are you using to build you code?
>>
>> I am trying to reproduce as following steps:
>>
>> 1. Download latest canary xwalk webview
>>
>> 2. Extract it and import into Eclipse.
>>
>> 3. Create a new project following the instrumentation at
>> https://crosswalk-project.org/#documentation/embedding_crosswalk .
>>
>> 4. Copy the build.xml from xwalk webview to the newly created
>> project.
>>
>> 5. Change the project name of the copied build.xml
>>
>> 6. Run “android update project –p ./” in created project and
>> “android update lib-project –p ./” in xwalk webview.
>>
>> 7. Run “ant debug” in created project.
>>
>> The built apk is working correctly on my test device.
>>
>>
>>
>> Besides, can you confirm that “AndroidProtocolHandler.class” is in the
>> “xwalk_core_library_java.jar” included in xwalk webview. And have you tried
>> to directly use eclipse to build your project?
>>
>>
>>
>> Thanks,
>>
>> Shiliu.
>>
>>
>>
>> *From:* Bradley Behe [mailto:[email protected]]
>> *Sent:* Monday, June 23, 2014 8:37 PM
>> *To:* Wang, Shiliu
>> *Cc:* [email protected]
>> *Subject:* Re: [Crosswalk-help] Runtime Issues with Crosswalk webview on
>> Android
>>
>>
>>
>> Sure.
>>
>> I am using eclipse to edit my code and have added the library to the code
>> by following the exact instructions on the crosswalk website. I have used
>> both the latest version of the beta webview and the canary webview to no
>> success. I am building my code via the command line with ant.
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Jun 23, 2014 at 12:47 AM, Wang, Shiliu <[email protected]>
>> wrote:
>>
>> Hi, Bradley
>>
>>
>>
>> Thanks for trying xwalk embedding API.
>>
>> The warning message for resources are not critical.
>>
>> The log shows that org.xwalk.core.AndroidProtocolHandler is not found in
>> your java classes. Can you share how you setup your projects and which
>> version of xwalk_core_library you are using?
>>
>>
>>
>> Thanks,
>>
>> Shiliu.
>>
>>
>>
>> *From:* Crosswalk-help [mailto:
>> [email protected]] *On Behalf Of *Bradley
>> Behe
>> *Sent:* Friday, June 20, 2014 8:48 PM
>> *To:* [email protected]
>> *Subject:* [Crosswalk-help] Runtime Issues with Crosswalk webview on
>> Android
>>
>>
>>
>> Hello,
>>
>>
>>
>> I've been trying to add the embedded api of Crosswalk webview to an
>> existing project using the instructions here
>> https://crosswalk-project.org/#documentation/embedding_crosswalk . I can
>> get the code to compile, however when I run the app and it gets to the
>> point where I call the XWalkView library, I get the following errors
>>
>>
>>
>> W/XWalkInternalResources(12309):
>> org.xwalk.core.R$string.accessibility_content_v
>>
>> iew is not found.
>>
>>
>>
>> A whole bunch of errors like that, indicating the program can't find the
>> R file. And then I get this
>>
>>
>>
>> D/dalvikvm(12309): Trying to load lib
>> /data/app-lib/org.yaxim.androidclient-2/li
>>
>> bxwalkcore.so 0x4286ce00
>>
>> D/dalvikvm(12309): Added shared lib
>> /data/app-lib/org.yaxim.androidclient-2/libx
>>
>> walkcore.so 0x4286ce00
>>
>> W/System.err(12309): java.lang.NoClassDefFoundError:
>> org/xwalk/core/AndroidProto
>>
>> colHandler
>>
>> W/System.err(12309): at java.lang.Runtime.nativeLoad(Native Method)
>>
>> W/System.err(12309): at java.lang.Runtime.loadLibrary(Runtime.java:379)
>>
>> W/System.err(12309): at java.lang.System.loadLibrary(System.java:535)
>>
>> W/System.err(12309): at
>> org.chromium.base.library_loader.LibraryLoader.loadAl
>>
>> readyLocked(LibraryLoader.java:161)
>>
>> W/System.err(12309): at
>> org.chromium.base.library_loader.LibraryLoader.loadNo
>>
>> w(LibraryLoader.java:125)
>>
>> W/System.err(12309): at
>> org.xwalk.core.XWalkViewDelegate.init(XWalkViewDelega
>>
>> te.java:119)
>>
>> W/System.err(12309): at
>> org.xwalk.core.XWalkView.init(XWalkView.java:227)
>>
>> W/System.err(12309): at
>> org.xwalk.core.XWalkView.<init>(XWalkView.java:191)
>>
>> W/System.err(12309): at
>> org.yaxim.androidclient.chat.ChatRTC.onCreate(ChatRTC
>>
>> .java:41)
>>
>> W/System.err(12309): at
>> android.app.Activity.performCreate(Activity.java:5250
>>
>> )
>>
>> W/System.err(12309): at
>> android.app.Instrumentation.callActivityOnCreate(Inst
>>
>> rumentation.java:1097)
>>
>> W/System.err(12309): at
>> android.app.ActivityThread.performLaunchActivity(Acti
>>
>> vityThread.java:2211)
>>
>> W/System.err(12309): at
>> android.app.ActivityThread.handleLaunchActivity(Activ
>>
>> ityThread.java:2297)
>>
>> W/System.err(12309): at
>> android.app.ActivityThread.access$700(ActivityThread.
>>
>> java:152)
>>
>> W/System.err(12309): at
>> android.app.ActivityThread$H.handleMessage(ActivityTh
>>
>> read.java:1282)
>>
>> W/System.err(12309): at
>> android.os.Handler.dispatchMessage(Handler.java:99)
>>
>> W/System.err(12309): at android.os.Looper.loop(Looper.java:137)
>>
>> W/System.err(12309): at
>> android.app.ActivityThread.main(ActivityThread.java:5
>>
>> 328)
>>
>> W/System.err(12309): at java.lang.reflect.Method.invokeNative(Native
>> Method)
>>
>> W/System.err(12309): at
>> java.lang.reflect.Method.invoke(Method.java:511)
>>
>> W/System.err(12309): at
>> com.android.internal.os.ZygoteInit$MethodAndArgsCalle
>>
>> r.run(ZygoteInit.java:1102)
>>
>> W/System.err(12309): at
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.ja
>>
>> va:869)
>>
>> W/System.err(12309): at dalvik.system.NativeStart.main(Native Method)
>>
>> W/System.err(12309): Caused by: java.lang.ClassNotFoundException: Didn't
>> find cl
>>
>> ass "org.xwalk.core.AndroidProtocolHandler" on path:
>> /data/app/org.yaxim.android
>>
>> client-2.apk
>>
>> W/System.err(12309): at
>> dalvik.system.BaseDexClassLoader.findClass(BaseDexCla
>>
>> ssLoader.java:65)
>>
>> W/System.err(12309): at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:501)
>>
>>
>>
>> W/System.err(12309): at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:461)
>>
>>
>>
>> W/System.err(12309): ... 23 more
>>
>> F/chromium(12309): [0620/075446:FATAL:jni_android.cc(116)] Check failed:
>> !ClearE
>>
>> xception(env) && clazz. Failed to find class
>> org/xwalk/core/AndroidProtocolHandl
>>
>> er
>>
>>
>>
>>
>>
>> I have tried every different way I can think of to add the library to
>> project, cleaning the project, etc, but every time I get the same thing.
>> Any help would be greatly appreciated. Thanks
>>
>>
>>
>> -Brad
>>
>>
>>
>
>
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>
>
--
Elliot Smith
Senior Software Engineer
Intel Open Source Technology Centre
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help