Good afternoon,

Here the code of webview, please give the equivalent to xwalkwebview,


I have a example with webview, that work fine, but need convert it in 
xwalkwebview

public class WebViewDemo extends Activity {
 @Override
 protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  WebView webView = new WebView(this);
  webView.setClickable(true);
  webView.setFocusableInTouchMode(true);
  webView.getSettings().setJavaScriptEnabled(true);
  webView.loadUrl("http://www.google.com";);
  WebClientClass webViewClient = new WebClientClass();
  webView.setWebViewClient(webViewClient);
  WebChromeClient webChromeClient=new WebChromeClient();
  webView.setWebChromeClient(webChromeClient);
  setContentView(webView);
 }

 public class WebClientClass extends WebViewClient {
  ProgressDialog pd = null;

  @Override
  public void onPageStarted(WebView view, String url, Bitmap favicon) {
   super.onPageStarted(view, url, favicon);
   pd = new ProgressDialog(WebViewDemo.this);
   pd.setTitle("Please wait");
   pd.setMessage("Page is loading..");
   pd.show();
  }

  @Override
  public void onPageFinished(WebView view, String url) {
   super.onPageFinished(view, url);
   pd.dismiss();
  }
 }

 public class WebChromeClass extends WebChromeClient{
 }


Attentively,


Wilmar Martinez

________________________________
De: Zhang, Xiaofeng <[email protected]>
Enviado: miƩrcoles, 28 de septiembre de 2016 8:42:39 p. m.
Para: Wilmar Martinez; [email protected]
Asunto: RE: Please a tutorial or something

XWalkView is similar with Android WebView, so if you can provide the sample of 
the implementation by WebView, we can provide the equivalent usage of XWalkView.
Thanks.

Best Regards :)
Xiaofeng Zhang

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Wilmar 
Martinez
Sent: Thursday, September 29, 2016 12:24 AM
To: [email protected]
Subject: [Crosswalk-help] Please a tutorial or something


Good afternoon,



Sincerely, I need some support with the following, I understand that this room 
is for technical problems, but I am searching but in this moment not have the 
solution for.

1. Connect status (When not have connect show a message with o without spinner),

2. XWalkUIClient (When the app is open show a message with o without spinner),



I saw https://crosswalk-project.org/apis/embeddingapidocs_v7/index.html, but in 
this moment is hard for me, if is possible a link with a tutorial will be 
excelente for me,



I am using the last library,



Attentively,



Wilmar Martinez
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to