Camera with UserMedia on android (PhoneGap)

0 favourites
  • 4 posts
From the Asset Store
Simple and easily editable template for a dynamic camera that zooms in and out based on how far apart the players are.
  • 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!
  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OK.

    Moved as requested.

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