Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Checkpermission for android

Author
Message
Starbuzzzz
13
Years of Service
User Offline
Joined: 5th Dec 2010
Location: France
Posted: 29th Sep 2024 10:43
Hi,
i've got a new problem with agk studio. I want my app to use the camera device. I've tried this in my program:

permission$ = "Camera"
RequestPermission( permission$ )
while( CheckPermission( permission$ ) = 1 )
Sync()
endwhile

do
print(checkpermission("Camera"))
sync()
loop

When I try it on my google pixel, i've got -1 on the screen. This means so that the permission has been denied. But I never have a box to ask me if I give the persmission or not to use the cam.
That's strange and I don't understand why :/
Thanx for your answers.

Buzzz
Starbuzzzz
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 30th Sep 2024 02:00
Did you check "camera" when you exported to android?

Login to post a reply

Server time is: 2024-09-30 04:22:54
Your offset time is: 2024-09-30 04:22:54