Camera with UserMedia on android (PhoneGap)

Ideas and discussion about publishing and distributing your games

Post » Tue Jun 21, 2016 10:29 pm

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".

Image

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:

Code: Select all
<uses-permission android:name="android.permission.CAMERA" />


Image

And Save. Now, just install the modified .apk, and run. It Works for me. Enjoy!!!

Any issue just ask. Thanks!
B
10
S
4
G
1
Posts: 17
Reputation: 1,336

Post » Wed Jun 22, 2016 7:00 am

@HItskin

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
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,540
Reputation: 60,424

Post » Fri Jun 24, 2016 4:30 pm

Oh, so, sorry.
I just searched for Tutorials Section and came this topic.
Can i trasnfer?
B
10
S
4
G
1
Posts: 17
Reputation: 1,336

Post » Fri Jun 24, 2016 4:56 pm

@HItskin

OK.
Moved as requested.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,540
Reputation: 60,424


Return to Distribution and Publishing

Who is online

Users browsing this forum: No registered users and 1 guest