Menu

#61 Failed to save photo to sdcard

1.0
closed
Mark
None
2021-02-13
2015-07-30
Anonymous
No

Android version: 4.4.2
Model number: Hudl 2

OpenCamera fails to save photo when save location has been set to a folder on an external SD Card

Discussion

  • Anonymous

    Anonymous - 2015-07-30

    Sorry, please reject this ticket. It's a limitation with Android :-(

     
  • Michael C Tiernan

    Clarification request. Is it that Android 4.4+ doesn't allow data to be saved into ANY path in the external SD card or is it that an application can't store data into a path the application has picked?

    Example:

    1. Android won't permit app to pick /storage/sdcard0/[application specific path]/myphotos
    2. I give OC the path /storage/sdcard/mypictures/opencamera/ and it will honor that?

    My primary concern here is that it seems that case 2 above does work and I'm hoping my stuff isn't ending up in the land of lost socks.

    However, I have found that the onscreen indicator of storage space doesn't honor that setting and only reports on internal storage.

     
    • Mark

      Mark - 2015-10-08

      It's supposed to be that an application can't save to external SD card, whether or not the user has picked the path (Android 5 meanwhile allows permission, as long as the user explicitly picks the directory via the "Settings/More camera controls/"Use Storage Access Framework" option).

      If it does seem to be working (as in you can see the photos really have been saved there), then firstly - are you sure that's really the external SD card? (Usually /storage/sdcard0 will actually be the internal storage these days, and external SD card is another path which is typically ddvice specific.) If this really is working to save photos onto the external SD cards, I'm not sure why it works - possibly the device you have runs a version of Android that doesn't have this restriction (OEMs typically make modifications to Android, and don't have to follow with Google restrictions - but the Android 4.4 changes were big news because the major OEMs went with the restrictions).

       
      • Michael C Tiernan

        Just commenting to provide information in the hopes it helps someone...

        If it does seem to be working (as in you can see the photos
        really have been saved there), then firstly - are you
        sure that's really the external SD card?

        Double/triple checked, yes, it is saving the photos onto the storage card but not in an "android" path. I admit to being very green with Android. Seeing the options available I decided to take a punt and I created place on my sd card for storage because nothing else seemed to work as expected.

        So, here's what my storage looks like:

        android (Our root "/")
        
        android/sdcard -> storage/emulated/legacy
        
        android/storage
        android/storage/emulated
        android/storage/emulated/0
        android/storage/emulated/legacy
        
        android/storage/sdcard0 -> storage/emulated/legacy
        

        This is my external microSD card I added:

        android/storage/external
        android/storage/external/Android
        android/storage/external/Books
        android/storage/external/DCIM
        android/storage/external/DCIM/OpenCamera
        android/storage/external/iTunes-Copy  <--- My transferred (from smb share) music library.
        android/storage/external/LOST.DIR
        

        I find three "OpenCamera" directories:

        /storage/external/DCIM/OpenCamera  <--- The one I created
        /storage/eumlated/legacy/DCIM/OpenCamera  <--- The one(s) OC created. (Empty)
        /storage/emulated/0/DCIM/OpenCamera   <----/
        

        And the photos I take with OC are ending up in the first one, the one I created which are on my external SD card.

        My unit is:

        Verizon Elipsis 8
        Model: QTAQZ3
        CPU: ARMv7 Rev 3 (v71) @ 1482 Mhz (Quad core)
        Running: Android 4.4.2 (Build KOT49H)
        

        Thanks for listening and explaining! :)

         
  • Mark

    Mark - 2015-10-08
    • status: open --> closed
     
  • Mark

    Mark - 2015-10-08

    See http://opencamera.sourceforge.net/#faq "How can I save to my external SD card?" for more details on SD cards for each Android version. Yes indeed, annoyingly this isn't possible with Android 4.4, but things are better for 5, and look even better for 6 :)

     
  • elderpro

    elderpro - 2015-11-16

    I'm confused and am running Android 5.1 with the "Use Storage Access Framework" checked. "SD card" is selected as a "Save" location. Images are saved and appear in the Gallery, but every time a "Failed to take picture" dialog appears.

    Specifically it turns out the image files are then located in a new directory I created at: /storage/sdcard0/DCIM/OpenCamera.

    I also tried setting "Internal storage" as a "Save" location. Again images are saved, but the "Failed…" dialog still appears. Those image files are then located at: /storage/sdcard1 (no specific OpenCamera directory for this test).

    What's needed to avoid the confusing "Failed to take picture" dialog? Are reboots or "Clear data"s needed when changing storage locations?

     
  • Anonymous

    Anonymous - 2016-02-17

    It is a restriction with Android 4.4+. You need to root the device (towelroot) and download a 'sdfix' (or similar) on app store to fix it. It is very straightforward process. On your phone browser just go to towleroot.com and follow the instruction ( a few clicks) to root the phone. Afterward go to app store and download 'sdfix' or a similar app to fix the permission issue. Just reboot and you are set.

     

    Last edit: Anonymous 2016-02-17
  • Anonymous

    Anonymous - 2017-04-29

    i have found the sol. without rooting, go to settings, more camera controls, turn' use storage access framework' to on, then it will open a window to select a folder ( if there are no storages appearing, then click the three dots on the top right and click on show storage, then select the folder

     

    Last edit: Anonymous 2017-04-29
    • Anonymous

      Anonymous - 2018-04-24

      Thank you very much, it works like a charm !

       
    • Anonymous

      Anonymous - 2018-05-10

      There is no such option (use storage access framework). (Android 4.4.2 , OC v1.43.3)

       
      • Mark

        Mark - 2018-05-20

        See the early comments in this thread - saving to SD cards isn't supported on Android 4.4 due to Google restrictions.

         
  • Anonymous

    Anonymous - 2017-11-23

    RESPECT. You solution it's "the" solution! Thanks a lot.

     
  • Anonymous

    Anonymous - 2018-02-08

    good job, its working :DD

     
  • Anonymous

    Anonymous - 2018-02-17

    WOO !! IT WORKED HERE TOO!! THANKS!!

     
  • Anonymous

    Anonymous - 2018-04-09

    gracias, es la soluciòn!

     
  • Anonymous

    Anonymous - 2018-09-07

    I already have all my settings correct. It worked yesterday, but it stopped working today.

     
  • Anonymous

    Anonymous - 2021-02-13

    using fairphone with android 10. was not able to save in dcim. fixed it by saving to Dowloads.
    It must be something about permissions.

     

Anonymous
Anonymous

Add attachments
Cancel