On Sat, Oct 12, 2013 at 3:15 PM, Jugesh Rai <
itsj...@gmail.com> wrote:
> Hi,
> I am working on an android epub reader application using monocle
> js. I have created TOC contents from ncx file through android code.
> and clicking on toc icon i m generating this android dialog box to
> show list of contents(TOC). now i call locus search function
> (goToXpath) to skip to those pages, but it is rendering to first page
> only.
>
I don't know about that specific problem, but I had success with a
different approach in an epub reader I wrote for Ubuntu Touch (Beru, at
https://github.com/rschroll/beru). I use the reader.skipToChapter()
function to move to the beginning of chapters. This function takes a
single argument, the url of the chapter, which you can get from the src
attribute of the <content> tag in each <navPoint> tag in the ncx file.
(In a Epub2 file, at least. It's slightly different for Epub3.) Maybe
that'll work for you.
Robert