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)
<http://developer.android.com/reference/android/webkit/WebSettings.html#setD
atabaseEnabled(boolean)> setDatabaseEnabled(boolean flag) 

2)
<http://developer.android.com/reference/android/webkit/WebSettings.html#setC
acheMode(int)> setCacheMode(int mode)

3)
<http://developer.android.com/reference/android/webkit/WebSettings.html#setS
aveFormData(boolean)> setSaveFormData(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]; [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/c
ore_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

Reply via email to