User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Crash using Android camera despite permission

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2014
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Crash using Android camera despite permission

    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.

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,514
    Mentioned
    59 Post(s)
    Tagged
    2 Thread(s)
    what version of fusion you are using?, also are you setting the write_external/read_external permission if you are saving the images
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2014
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,514
    Mentioned
    59 Post(s)
    Tagged
    2 Thread(s)
    please post a small mfa for me to test
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2014
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Small MFA of the game

    https://ufile.io/svwlr
    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.

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,514
    Mentioned
    59 Post(s)
    Tagged
    2 Thread(s)
    no crashing here though

    https://drive.google.com/file/d/15UZ...ew?usp=sharing

    can you tell me the date for ACamera.zip at data/runtime/android shoudl be 6/6/2018
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2014
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Android camera extension

    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.

  8. #8
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    5,514
    Mentioned
    59 Post(s)
    Tagged
    2 Thread(s)
    mm need to check under a android 8
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  9. #9
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2014
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Tried it on my old phone, which uses Android 4.1.2, and the game does NOT crash.

  10. #10
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2014
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Does that mean the camera crashes at Android 8.0? The Android version is the only consistent thing I can see.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. android camera take photo
    By 252buket in forum Android Export Module 2.5
    Replies: 1
    Last Post: 24th August 2016, 11:27 PM
  2. Android Camera Object
    By Ls2 in forum Android Export Module 2.5
    Replies: 10
    Last Post: 24th August 2016, 03:13 PM
  3. Android Camera [Beta]
    By Stephen in forum Android Export Module Version 2.0
    Replies: 53
    Last Post: 22nd January 2014, 03:35 PM
  4. Android Permission SET_ALARM is absent
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 20th January 2013, 09:22 AM
  5. Beta 33- [BUG] Camera causes crash
    By Kisguri in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 23rd August 2012, 08:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •