Skip to content Skip to sidebar Skip to footer

Not Able To Write To SDCard While Screen Is Off Even Though I Have PARTIAL_WAKE_LOCK

I'm totally new to Java and Android, so I think I'm probably missing something obvious. I'm writing an app where I sample the orientation sensor and write the result to a file on t

Solution 1:

Are you checking if external storage is available as described here? It may be simply unwritable at that time. There's also code in the docs for a external storage BroadcastReceiver. You could use that to wait until storage is available before writing.


Post a Comment for "Not Able To Write To SDCard While Screen Is Off Even Though I Have PARTIAL_WAKE_LOCK"