Crash using Android camera despite permission

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • My Android game (Super Space Slayer 2) has a feature that lets you use a picture of yourself as your portrait in the game. It's worked for years, but recently I updated the Android API to 28 (it's obligatory to update). Now, every time you try to use the camera the game crashes as though the camera permission was not active.

    The checkbox for the 'CAMERA' permission in the project is ticked, and the permissions listed on the game's install on my Android phone are 'Camera and Storage', so the the camera should work as it always has.

    The crash simply says 'Super Space Slayer 2 has stopped'.

    Any advice about why this is happening?

    EDIT: I've tried creating a simple, blank app that opens the camera when you touch the screen with the camera permission active, and it DOES work. It's just the camera in my full game that isn't working.

    Edited once, last by KDunlop (November 10, 2018 at 11:58 PM).

  • Thanks for the reply, Fernando.
    I'm using 'Version 2.5, (Build R291.6) (Jul 9 2018)' according to the 'About' window in Clickteam Fusion 2.5 Developer.
    'READ_EXTERNAL_STORAGE' and 'WRITE_EXTERNAL_STORAGE' are both ticked in my application too.
    The crash happens as soon as you press the button that activates the 'Take picture' action for the Android Camera object.

    EDIT: I've just tried making a version of the game that has all permissions active and that crashes in the same place too.
    The 'Camera' tickbox under 'Required Hardware' is ticked too.
    Build API is 28, Minimum Android version is 4.1 and Target Android version is 8.0 if that's any help.

    Edited 3 times, last by KDunlop (November 12, 2018 at 9:42 PM).

  • Please login to see this link.
    Above is a link to a smaller, cut-down version of the game. Just click the screen to activate the Android camera with the 'Take picture' action. I've made an Android .APK of this version and run that, and tapping the screen causes the same crash as before.

    I've removed all but one of the frames from the game and the screen-tapping thing is now the only line of programming.

  • The 'date modified' on my 'ACamera.zip' in Data/Runtime/Android is '06/06/2018'.

    I've tried it my phone and my brother's phone and it crashes on both systems.
    My Android version is 8.0, and so his, that might have something to do with it.

    Edited once, last by KDunlop (November 21, 2018 at 9:03 PM).

  • Hi Fernando.
    I have the exactly bug.
    My client is putting pressure on me because we have an event next week and the app crash when we are using the fondamental element... the camera.
    Do you have some news?
    Thanks.
    Regards

    A défaut d'assurer, il faut savoir assumer - Olivier BACCINO

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!