Android Question Problem using CAMERAKIT

Discussion in 'Android Questions' started by DOM85, Jul 4, 2019.

  1. DOM85

    DOM85 Active Member Licensed User

    Hello,
    I try tu use the Camerakit pack.
    I used the given link to download the library and the B4A example :
    https://www.dropbox.com/sh/hxjawhcxqfek1wh/AACyVZ-cJW01rH0vREIymdr7a?dl=0
    From this link i downloaded Camerakit.jar, Camerakit.xml, and Camerakit.aar. I put them in B4A libraries directory.

    Maybe i did something bad during installation. When i try to load the example i obtain the next message :

    An error happens.
    Error parsing libraries.
    For security reasons, DTD not allowed in this XML document.
    To Activate the DTD management, define PARSE the DTDProcessing property on XmlReaderSettings and transmit the parameters to the XmlReader.Create method.


    If someone can help me, thank you.
     
  2. DonManfred

    DonManfred Expert Licensed User

    Google has some findings about this error.

    I´m not sure if it is related to CameraKit

    What B4A Version are you using?
     
  3. DOM85

    DOM85 Active Member Licensed User

    @DonManfred : My B4A version is B8.50, under Windows 10 pro, smartphone Android 7.0
     
  4. Peter Simpson

    Peter Simpson Expert Licensed User

    Welcome to my ignore list @DOM85 you ignorant .....
     
  5. DOM85

    DOM85 Active Member Licensed User

    @Peter Simpson
    Thank you for your nice answer.
    But i tried all these methods with in each case a limitation or freeze :

    - "Intent"method cannot use front camera, and no protrait,

    - Cameraex : I never sucessed to reach the picture taken on my phone.
    When i try to modify the path where the picture is put, the app exits with the only one message "Unfortunately the App closed" When i try to follow in debug mode, the app close without any message.

    - Camera2 2017 : I successed to reach the picture taken on my phone, but i don't success to modify its path, and when i take a picture with the front camera, the picture is inverted left to right. In addition the implementation of this camera function in my app is quite heavy and complex.

    Thank you for your advices.
     
  6. Brandsum

    Brandsum Active Member Licensed User

    Can you post the exact project in which you are getting that xml error?
     
  7. DOM85

    DOM85 Active Member Licensed User

    Please explain your sentence.
     
  8. DOM85

    DOM85 Active Member Licensed User

    Hello,

    I only used all of this link (example and libraries)
    Win 10 pro - B4A V8.50 - Android 7.0

    Thanks.
     
  9. DonManfred

    DonManfred Expert Licensed User

    The problem is probably with your additional library folder. It seems that there is maybe a XML which should not be there?

    I just tried the example and it is working fine here.
     
  10. DonManfred

    DonManfred Expert Licensed User

  11. jimmyF

    jimmyF Active Member Licensed User

    Don't know if it would make a difference but maybe they should have been put in the Additional Libraries folder?
     
  12. DonManfred

    DonManfred Expert Licensed User

    One should never put additional libraries in the internal library folder.
     
    DOM85 likes this.
  13. DOM85

    DOM85 Active Member Licensed User

    Thank you @DonManfred. I go to retry it.
     
  14. DOM85

    DOM85 Active Member Licensed User

    @DonMafred. Your example runs PERFECT !!!
    Thank you for your nice answer.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice