Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11741 Reply

    William Wang

    android open a pdf with mutiple page,want to use thread to auto scroll the page,but not work

    #11742 Reply

    Dr. Plug
    Moderator

    Hello William,

    Thank you for your inquiry.
    Unfortunately, we failed to reproduce this issue on our side.
    The code works well on our side.
    Can you please provide a video showing how to reproduce the problem to the below mail?
    support@plugpdf.com

    Best regards,

    Dr.Plug
    PlugPDF Support

    #11743 Reply

    William Wang

    hi Dr. Plug:
    the whole main code like as is:

    Runnable scroll = new Runnable() {
    @Override
    public void run() {

    try {
    while (runflag)//auto scroll
    {
    Thread.sleep(delaytime);
    mReader.goToPage(index);
    index++;
    }
    }catch(Exception e)
    {
    e.printStackTrace();
    }
    }
    };
    mReader.getReaderView().postDelayed(scroll,delaytime);

    the whole view is locked and ANR error happend.

    #11750 Reply

    Dr. Plug
    Moderator

    Hello William,

    Thank you for your answer and patience.
    Can you give us error log about the issue?

    Best regards,

    Dr.Plug
    PlugPDF Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: programmatically to auto scroll pdf not work.
Your information: