Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Set page number in initialize

More
IP: 192.168.0.71 11 years 3 months ago - 11 years 3 months ago #7535 by shahroodi
Hi, how to set page number in initialize? I found OnPageChanged(int pageNo) method for changing page number manually, but i wanna show a page except first page. When should i call this method exactly?
I try to call this in onCreate and InitView but that wasn't correct i thought :(
(We have licence)
Last edit: 11 years 3 months ago by Danh.
More
IP: 192.168.0.158 11 years 3 months ago #7541 by nermeen
You can do it using:
Code:
m_reader.PDFOpen(m_doc, false, this); new Handler().postDelayed(new Runnable() { public void run() { m_reader.PDFGotoPage(10); } }, 100);
More
IP: 192.168.0.71 11 years 3 months ago #7544 by shahroodi
Thank u so much. That works fine :)
But a question. If my Pdf volume was great or device cpu was weak this delay must be more than 100!
Is not there a better and stable way?!
Time to create page: 0.614 seconds
Powered by Kunena Forum