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

TOPIC:

Unable to open file on device with Android 5.1.1+ 8 years 4 months ago #9918

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
Hello,
I am using your library and I found some strange exception.
Caused by: android.view.InflateException: Binary XML file line #7: Binary XML file line #7: Error inflating class com.radaee.reader.PDFReader
Caused by: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class EditText

In case that I run my application on device with Android 5.0.1 and lower, it works great and no exception is thrown. When I try to run application on device with Android 5.1.1 and higher, above exception is thrown. I also tried this on emulator and exactly the same behavior.

In my application, I am targeting SDK version 22. Previously I was targeting SDK version 18 and it worked fine on all devices. Can you please check it and write me where the problem is?

Thank you in advance for your help.

Best regards,
Petr.

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

Unable to open file on device with Android 5.1.1+ 8 years 4 months ago #9919

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Are you experiencing the issue within your application or using our demo?
Which device and conditions are you testing?

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

Unable to open file on device with Android 5.1.1+ 8 years 4 months ago #9920

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
This issue is in my application.
I tested it on device Nexus 5 with Android 6 and exception has been thrown during opening the PDF file. Also I have tested it on emulator with Android 5.1.1 and Android 6. Exactly the same exception.
When I tested it on my Galaxy S4 with Android 5.0.1, it works fine as well as on emulator with KitKat (API 19). I also tested it on Motorola Xoom with Android 4.0.4 and on this device it worked without problems.

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

Unable to open file on device with Android 5.1.1+ 8 years 4 months ago #9927

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
can you reproduce it even with the demo library?

Can you please give us the complete log?

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

Unable to open file on device with Android 5.1.1+ 8 years 4 months ago #9935

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
No, I am not able to reproduce it in your demo app.
See the attached log, please.
Attachments:

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

Unable to open file on device with Android 5.1.1+ 8 years 4 months ago #9944

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
I finally found the problem.
Previously, I was targeting SDK version 18 and everything worked fine. When I started with targeting SDK version 22, this problem occurred.

I made some research and finally I found that problem is with EditText class, where is missing some 9pach drawable. So everything what I had to do is set style to EditText in my styles. It is important to set "android:background" attribute to EditText.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum