Camera with UserMedia on android (PhoneGap)

From the Asset Store
Source File, music and art pack for Android Negotiator
  • First, sorry for my english, i'm brazilian.

    I don't know if it will help anyone, but I found a way to the userMedia work on android on phonegap build.

    I searched here in scirra forum, but have not found a solution.

    So, after reading the PhoneGap Documentation and based on other android apps, I found a solution (or not).

    First, on construct 2, before exporting the project to Phonegap you should check the "use camera".

    After you export to phonegap, and generated the .apk, you must edit the AndroidManifest.xml (for this you will need an apk editor, like Apk Manager... I used the app "apk editor pro" on my device.)

    On AndoidManifest.xml you need to add the permission to android use the camera, for this, add the line:

    <uses-permission android:name="android.permission.CAMERA" />[/code:37j0qrzf]
    
    [img="https://s31.postimg.org/nd9isxybv/Android_Manifest.png"]
    
    And Save. Now, just install the modified .apk, and run. It Works for me. Enjoy!!!
    
    Any issue just ask. Thanks!
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You have posted this (by mistake?) in the now retired Construct Classic section.

    It seems to me you really wanted to post this in the Construct 2 'Distribution and Publishing' section here: https://www.scirra.com/forum/distribution-and-publishing_f182

  • Oh, so, sorry.

    I just searched for Tutorials Section and came this topic.

    Can i trasnfer?

  • OK.

    Moved as requested.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)