Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Problem with annatacion on android 6.0

More
9 years 2 months ago #11687 by Viachaslau
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!
More
9 years 2 months ago #11692 by nermeen
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.
More
9 years 2 months ago - 9 years 2 months ago #11693 by Viachaslau
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
Last edit: 9 years 2 months ago by Viachaslau.
More
9 years 2 months ago #11694 by nermeen
We have tried the code below on Android 6 and it's working
Code:
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?
More
9 years 2 months ago #11710 by nermeen
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.
Time to create page: 0.432 seconds
Powered by Kunena Forum