วันพฤหัสบดีที่ 6 มกราคม พ.ศ. 2554

Gripes About Android’s WebView | Code by Coffee

Gripes About Android’s WebView | Code by Coffee

Bugs Loading Data

In addition to urls, WebViews can load html formatted (or plain text for that matter) strings by calling either loadData or loadDataWithBaseURL. Now, word of advice: unless your content is strictly alpha-numeric don’t call loadData, use loadDataWithBaseURL instead. The loadData method has a bug with the way it encodes certain characters including including ‘ % & and @. If you call loadData with one of these characters in the string you passed you will see an error page instead of your content. The loadDataWithBaseURL method does not have this problem. For more information about this issue see: http://code.google.com/p/android/issues/detail?id=1733 and also http://code.google.com/p/android/issues/detail?id=1593.



--


Make me waste 1HR. --'


ไม่มีความคิดเห็น:

แสดงความคิดเห็น