Hi, Vishnu, loadDataWithBaseURL was not provided. Currently only provided: void load(String url, String content) void loadAppFromManifest(String url, String content)
From: Vishnu Prakash [mailto:[email protected]] Sent: Monday, May 11, 2015 9:22 PM To: Xu, Xing; [email protected] Cc: 'Kaushik Sindhu'; 'Neeraj Sahu'; [email protected] Subject: Help in mapping Android Webkit and XWalkwebKit Hello Xu Xing and Crosswalk team, Greetings!!! Can you help me with a similar method in XWalk associated with Android's loadDataWithBaseURL (String baseUrl, String data, String mimeType, String encoding, String historyUrl) Loads the given data into this WebView, using baseUrl as the base URL for the content. I see that we have two similar methods load(String, String) loadAppFromManifest(String, String). Can you suggest me if I missed finding a similar method. Regards, Vishnu From: Xu, Xing [mailto:[email protected]] Sent: Friday, May 8, 2015 6:37 AM To: Vishnu Prakash; [email protected]<mailto:[email protected]> Cc: 'Kaushik Sindhu'; 'Neeraj Sahu' Subject: RE: [Crosswalk-help] Help in mapping Android Webkit and XWalkwebKit #1 I was replacing android.webkit.WebSettings with org.xwalk.core.XWalkPreferences as suggested by Xu Xing. I am not able to see the following methods used in my application in XWalkPreferences listed. For example 1) setDatabaseEnabled<http://developer.android.com/reference/android/webkit/WebSettings.html#setDatabaseEnabled(boolean)>(boolean flag) 2) setCacheMode<http://developer.android.com/reference/android/webkit/WebSettings.html#setCacheMode(int)>(int mode) 3) setSaveFormData<http://developer.android.com/reference/android/webkit/WebSettings.html#setSaveFormData(boolean)>(boolean save) Here is the list of methods provided by Android for your reference<http://developer.android.com/reference/android/webkit/WebSettings.html>. We are using quite few of these methods in our appl. How do we consume these methods? Please advice. ---------------------as said in my previous mail, they are not 1:1 mapping. But if you have strong reason to use it, you can raise it in https://crosswalk-project.org/jira and we will investigate if necessary to implement it. #2 Any suggestion to correlate the Internal, the Bridge and the Delegate classes and consume it in my application. For example: a) XWalkViewBridge b) XWalkViewDelegate c) XWalkViewInternal d) XWalkView How they are related and connected? --------------------- We use a reflection layer which convert XWalkView to XWalkViewInternal. Suggest you download the source code and build it. You will see the relation between these classes. The XWalkView is located at: out/Release/gen/xwalk_core_reflection_layer/wrapper/org/xwalk/core/XWalkView.java. So a reflection layer will be created between org.xwalk.core and org.xwalk.core.internal to support shared mode. #3 Can you please educate me how to use the DownloadListener(non public interface) located at org.xwalk.core.internal. I see XWalkDownloadListenerImpl.java also and not able to comprehend how the two are related. ---------------------If you are using the official sdk, you cannot use this. You can download source code and build it, and edit it. My suggestion is practice: build from source code, write a hello world. From: Vishnu Prakash [mailto:[email protected]] Sent: Thursday, May 7, 2015 9:08 PM To: Xu, Xing; [email protected]<mailto:[email protected]> Cc: 'Kaushik Sindhu'; 'Neeraj Sahu' Subject: RE: [Crosswalk-help] Help in mapping Android Webkit and XWalkwebKit Hi Crosswalk team, Greetings!!! Thank you for your response . I am doing a hands-on of mapping Android WebKit with XWalk project and realized that I will need to reach out to you for the following ask. Our goal is to transition from Android Webkit to Crosswalk project. #1 I was replacing android.webkit.WebSettings with org.xwalk.core.XWalkPreferences as suggested by Xu Xing. I am not able to see the following methods used in my application in XWalkPreferences listed. For example 1) setDatabaseEnabled<http://developer.android.com/reference/android/webkit/WebSettings.html#setDatabaseEnabled(boolean)>(boolean flag) 2) setCacheMode<http://developer.android.com/reference/android/webkit/WebSettings.html#setCacheMode(int)>(int mode) 3) setSaveFormData<http://developer.android.com/reference/android/webkit/WebSettings.html#setSaveFormData(boolean)>(boolean save) Here is the list of methods provided by Android for your reference<http://developer.android.com/reference/android/webkit/WebSettings.html>. We are using quite few of these methods in our appl. How do we consume these methods? Please advice. #2 Any suggestion to correlate the Internal, the Bridge and the Delegate classes and consume it in my application. For example: a) XWalkViewBridge b) XWalkViewDelegate c) XWalkViewInternal d) XWalkView How they are related and connected? #3 Can you please educate me how to use the DownloadListener(non public interface) located at org.xwalk.core.internal. I see XWalkDownloadListenerImpl.java also and not able to comprehend how the two are related. Thank you so much in advance, Warm Regards, Vishnu From: Xu, Xing [mailto:[email protected]] Sent: Thursday, May 7, 2015 7:42 AM To: Vishnu Prakash; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]> Cc: Kaushik Sindhu Subject: RE: [Crosswalk-help] Help in mapping Android Webkit and XWalkwebKit Hi, Vishnu, For your start, please refer to: https://crosswalk-project.org/documentation/getting_started.html. If you know how to build from the source(https://crosswalk-project.org/contribute/building_crosswalk.html), https://github.com/crosswalk-project/crosswalk/tree/master/runtime/android/core_shell will also be a good start point. For your mapping between android_webview and xwalk, this is not 1:1 mapping. There are some similarities between the two, so you can easily migrate from android webview to xwalk. We are trying to make xwalk look like android webview at the api level, but there are gaps currently. Android Ask XWalk Reference android.webkit.WebSettings; What is the associate class name in XWalk which needs to be imported? org.xwalk.core.XWalkPreferences (XWalkSettings is not public, so you cannot use it.) android.webkit.WebStorage; What is the associate class name in XWalk which needs to be imported? NA. android.webkit.DownloadListener; I see an interface in org.xwalk.core.internal.DownloadListener. but it is not public, any mechanism to implement this method in my application? (No public API Yet, about the in progress API org.xwalk.core.XWalkDownloadListener, you can refer to: https://crosswalk-project.org/jira/browse/XWALK-3647 https://crosswalk-project.org/jira/browse/XWALK-3958 Android.webkit.WebView Can I go ahead with XWalkView, I see the methods in Android are not implemented and scattered in multiple classes. org.xwalk.core.XWalkView From: Crosswalk-help [mailto:[email protected]] On Behalf Of Vishnu Prakash Sent: Wednesday, May 6, 2015 8:55 PM To: [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]> Cc: Kaushik Sindhu Subject: [Crosswalk-help] Help in mapping Android Webkit and XWalkwebKit Hi Crosswalk team, Greetings!!! I trust things are great at your end. I was doing a hands-on to upgrade android.webkit.* with crosswalk 11 in my application. Can you please help me with the following ask. Android Ask XWalk Reference android.webkit.WebSettings; What is the associate class name in XWalk which needs to be imported? android.webkit.WebStorage; What is the associate class name in XWalk which needs to be imported? android.webkit.DownloadListener; I see an interface in org.xwalk.core.internal.DownloadListener. but it is not public, any mechanism to implement this method in my application? Android.webkit.WebView Can I go ahead with XWalkView, I see the methods in Android are not implemented and scattered in multiple classes. May I request you to educate me with some samples/documents/links etc to connect and use xwalk in my application. I will really appreciate your time. Thank you in advance, Regards, Vishnu
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
