android - MediaStore.Images.Media.insertImage() error -


i have 2 devices same android version (4.4.2). problem when call method insertimage(getcontentresolver(),bitmap, "", ""), on 1 have error , other works planned

e/mediastore: failed insert image java.io.filenotfoundexception: no entry content://media/external/images/media/3865 @ android.database.databaseutils.readexceptionwithfilenotfoundexceptionfromparcel(databaseutils.java:189) @ android.content.contentproviderproxy.openassetfile(contentprovidernative.java:646) @ android.content.contentresolver.openassetfiledescriptor(contentresolver.java:939) @ android.content.contentresolver.openoutputstream(contentresolver.java:686) @ android.content.contentresolver.openoutputstream(contentresolver.java:662) @ android.provider.mediastore$images$media.insertimage(mediastore.java:934)

insertimage() can save image if external storage available.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -