Questions tagged «android-contentresolver»

19
Android 4.4(KitKat)上的Android Gallery为Intent返回不同的URI。ACTION_GET_CONTENT
在KitKat之前(或在新Gallery之前)Intent.ACTION_GET_CONTENT返回了这样的URI 内容:// media / external / images / media / 3951。 使用ContentResolver和查询 MediaStore.Images.Media.DATA返回文件URL。 但是,在KitKat中,图库会返回URI(通过“ Last”),如下所示: 内容://com.android.providers.media.documents/document/image:3951 我该如何处理?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.