NightWhistler / PageTurner

Android e-book reader with cloud synchronization
pageturner-reader.org
GNU General Public License v3.0
466 stars 222 forks source link

Can't load image shows "obj" only #558

Open bishwash-adhikari opened 10 years ago

bishwash-adhikari commented 10 years ago

In case of books with images , images are not loaded instead "OBJ" is only shown. Having big problem with this issue.

NightWhistler commented 10 years ago

The OBJ is a placeholder which means the image couldn't be loaded. Usually that's a memory issue, especially if there are a lot of images in the book.

Alternatively it could be that the URIs inside the book aren't parsed correctly.

bishwash-adhikari commented 10 years ago

This is fixed when BookView class -> ImageTagHandler class -> handleTagNode() -> loader.load() is called after registerCallback. Don't know why? this.registerCallback(resolvedHref, new ImageCallback( resolvedHref, builder, start, builder.length(), fakeImages)); try { loader.load(); } catch (IOException e) { e.printStackTrace(); }