Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Loading effect or some loader while opening PDF file from HTTP URL(http_link)) 4 years 1 month ago #14906

  • maynai
  • maynai's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
How we can add Loading effect while opening PDF file from URL i.e http_link. Currently if you load large size PDF file using HTTP URL then reader take some time to load this file on screen. End user get confused whether file will be open or not? So is any way to add loading effect on screen.

Please Log in or Create an account to join the conversation.

Loading effect or some loader while opening PDF file from HTTP URL(http_link)) 4 years 1 month ago #14907

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
yes, so, you are using PDFHttpStream, you can do like PDFNavAct.java does.
there is OpenTask class in PDFNavAct, to display a waiting dialog while opening need more than 1 second.
to override onPreExecute() method of AsyncTask.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum