RadaeePDF.com :: Topic: Swipe immediately after open - Events behaviour (1/4)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Swipe immediately after open - Events behaviour

Swipe immediately after open - Events behaviour 2 years 10 months ago #7628

  • kurt_zelda
  • kurt_zelda's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 1
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.
The administrator has disabled public write access.

Swipe immediately after open - Events behaviour 2 years 10 months ago #7636

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 678
  • Thank you received: 47
  • Karma: 14
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
The administrator has disabled public write access.

Swipe immediately after open - Events behaviour 2 years 10 months ago #7637

  • kurt_zelda
  • kurt_zelda's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 1
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?
The administrator has disabled public write access.

Swipe immediately after open - Events behaviour 2 years 10 months ago #7638

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 678
  • Thank you received: 47
  • Karma: 14
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
The administrator has disabled public write access.

Swipe immediately after open - Events behaviour 2 years 10 months ago #7639

  • kurt_zelda
  • kurt_zelda's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 1
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.
The administrator has disabled public write access.

Swipe immediately after open - Events behaviour 2 years 10 months ago #7643

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 678
  • Thank you received: 47
  • Karma: 14
Try with the last version of the library..
www.androidpdf.mobi/download/download-android

--

Yes it's normal..
Last Edit: 2 years 10 months ago by poudel.
The administrator has disabled public write access.
Powered by Kunena Forum