suxinmin / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Make url accept file path #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For BitmapAjaxCallback:

When callback.file() is set you should also set callback.fileCache(true) and 
ignore all calls to callback.fileCache() when callback.file() was previously 
set.

This is because when you set fileCache to false the callback.file is never read 
locally and always tries to read over the network but all you get is "Target 
host must not be null, or set in parameters" error because there is not 
protocol and hostname.

For AbstractAjaxCallback:

In general you should treat urls that starts with "/" as local files and not 
tried to load them over the network. 

Original issue reported on code.google.com by tinyeeliu@gmail.com on 26 Dec 2012 at 5:36