Description:
Currently there are three cases which will trigger this dialog:
1), Recently I meet this dialog when running sample based on embedding API, 
which happens very low frequency.
==> This can be workaround with override XWalkResourceClient.onReceivedLoadError
2), One guy reports that application created by make_apk will popup this dialog 
occasionally  too, https://crosswalk-project.org/jira/browse/XWALK-4788.
==> No workaround.
3), And QA also provides a case including 5 XWalkViews, almost always popups 
this dialog, https://crosswalk-project.org/jira/browse/XWALK-4514
==> This can be workaround with override XWalkResourceClient.onReceivedLoadError

This dialog is very annoying, especially to developers of make_apk.  And the 
only purpose for this dialog is telling users that something is wrong with 
network,  then he must click "OK" button.
Under this condition, the webpage maybe reload internally, and this has nothing 
to do with the "OK". So this "OK" button is meaningless  to users.  But only 
make users annoying.

So here my suggestion:  Change this  dialog to  Android 
Toast(http://developer.android.com/guide/topics/ui/notifiers/toasts.html).
Toast will inform users that something is wrong with network, but no need to 
click any "OK" button.

Affected component:
XWalkResourceClient/XWalkResourceClientInternal

Related feature:
Change Dialog of onReceivedLoadError to Toast
JIRA: https://crosswalk-project.org/jira/browse/XWALK-4804

Related Bugs:
https://crosswalk-project.org/jira/browse/XWALK-4788,  
https://crosswalk-project.org/jira/browse/XWALK-4514

Target release:
Crosswalk-15

Implementation details:
Change the AlertDialog  of  XWalkResourceClientInternal.onReceivedLoadError to 
Android Toast.


Regards
Xing


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

Reply via email to