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

TOPIC:

Problem with annatacion on android 6.0 7 years 3 months ago #11687

  • Viachaslau
  • Viachaslau's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
Hi, Guys! Please, help me. On android 6 Marshmallow not found audio annatacions.
And in class Page. method "AddAnnotAttachment(String path, int icon, float[] rect)" always return false.
I will be very glad to answer! Thank you!

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

Problem with annatacion on android 6.0 7 years 3 months ago #11692

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Can you better explain your needs please?

For the AddAnnotAttachment, a professional license is needed..are you trying using the demo project or yours? if yours, are you using the demo project's package name, so the demo license id activated.

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

Problem with annatacion on android 6.0 7 years 3 months ago #11693

  • Viachaslau
  • Viachaslau's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
I use the license. As the annotations I use the audio files. On 5 android works. Install applications on 6 android. Attached audio annotations are not. And I can not add an audio annotation application. "AddAnnotAttachment(String path, int icon, float[] rect)" returns false constant.
Thanks

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

Last edit: by Viachaslau.

Problem with annatacion on android 6.0 7 years 3 months ago #11694

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
We have tried the code below on Android 6 and it's working
page.AddAnnotAttachment("/mnt/sdcard/Music/audio.mp3", 0, new float[]{100, 100, 200, 150})
So, can you reproduce your issue with the demo project?
Can you send the code you are using?

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

Problem with annatacion on android 6.0 7 years 3 months ago #11710

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
If the audio file is in the SDcard (or the m_doc.setCache path is in sdcard), make sure that your app has the permission to access sdcard

And to implement the runtime permission check.

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

  • Page:
  • 1
Powered by Kunena Forum