Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid 4.2 Lockscreen Widget image bitmaps won't load
    primarykey
    data
    text
    <p>I'm trying to enable my widget in my app on the Android 4.2 lockscreen and it works fine, however it is unable to resolve any of the image uris. The error I get is this:</p> <pre><code>java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.tvshowfavs/cache/22kifo7sdmyet7x7kphdgch69: open failed: EACCES (Permission denied) at libcore.io.IoBridge.open(IoBridge.java:416) at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:78) at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:105) at android.content.ContentResolver.openInputStream(ContentResolver.java:447) at android.widget.ImageView.resolveUri(ImageView.java:636) at android.widget.ImageView.setImageURI(ImageView.java:381) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:1146) at android.widget.RemoteViews.performApply(RemoteViews.java:2304) at android.widget.RemoteViews.apply(RemoteViews.java:2263) at android.widget.RemoteViewsAdapter$RemoteViewsFrameLayout.onRemoteViewsLoaded(RemoteViewsAdapter.java:286) at android.widget.RemoteViewsAdapter$RemoteViewsFrameLayoutRefSet.notifyOnRemoteViewsLoaded(RemoteViewsAdapter.java:335) at android.widget.RemoteViewsAdapter$4.run(RemoteViewsAdapter.java:993) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.os.HandlerThread.run(HandlerThread.java:60) Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) at libcore.io.IoBridge.open(IoBridge.java:400) </code></pre> <p>Anyone have any idea why it can't open an image that is stored on the emulated storage? This image was previously downloaded and cached using the Environment.getExternalStorageDirectory(), so it should be properly written to the storage directory. This is on a Nexus 10 that I'm receiving this exception when any of the images are attempted to be loaded. Any help is appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload