Swipe immediately after open - Events behaviour - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF

TOPIC: Swipe immediately after open - Events behaviour

Swipe immediately after open - Events behaviour 4 years 2 weeks ago #7628

  • kurt_zelda
  • kurt_zelda's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Karma: 1
  • Thank you received: 0
I've PDF library inside my program.

But I have a problem swiping or make some gesture to change the page on some devices (slowly), seems before PDF had opened the file. There is a way to stop swipe before the PDF is ready to accept it?

---

I'm observed a strange behaviour writing a log: invalidated is called continously even without user interaction (invalidate - PageDisplayed). There is an internal timer calling some events?

Thank you.

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

Swipe immediately after open - Events behaviour 4 years 1 week ago #7636

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
1 - I have tested with some devices and the swipe feature (even slowly) seems to work properly.
Can you send us more details about your problem?
--
2 - Yes, there is an internal timer, you can see how it works in PDFView class vOnTimer(Object obj) void

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

Swipe immediately after open - Events behaviour 4 years 1 week ago #7637

  • kurt_zelda
  • kurt_zelda's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Karma: 1
  • Thank you received: 0
I can reproduce the problem with a "medium" PDF with an Asus Transformer TF101 (presumibly a slowly device compared with new one).
I have a menu with a PDF list. Immediately after my choice (I open the PDF) I try to swipe as fast as I can (I think I could swipe faster after the open but before than open finish), and the activity seems freezed.
If I wait just a little after the choice I cannot reproduce the problem.

--

I can't see the timer, in the java source I cannot find it. In what file I can see the timer implemented?

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

Swipe immediately after open - Events behaviour 4 years 1 week ago #7638

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
What version of the library do you have? Have you tested it with the last version of the reader?

--

PDFView.java

You need a premium or a professional license to edit this class.

If you have one of these license you need to download the source code from here --> www.androidpdf.mobi/shop/key-request

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

Swipe immediately after open - Events behaviour 4 years 1 week ago #7639

  • kurt_zelda
  • kurt_zelda's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Karma: 1
  • Thank you received: 0
I use the 2.9.11b


I have a standard license, so only a question: it's right to see invalidate called continously even without user interaction? If it's normal, no problem... If not I have to see implementation to stop unwanted works.

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

Swipe immediately after open - Events behaviour 4 years 1 week ago #7643

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Try with the last version of the library..
www.androidpdf.mobi/download/download-android

--

Yes it's normal..

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

Last edit: by poudel.
Powered by Kunena Forum