我正在尝试从 Mediastore.Images.Media 检索图像我总是让光标为空。请建议如何解决该问题。提前致谢
Uri contenturi = Images.Media.getContentUri("phoneStorage");
String[] mprojection = { MediaStore.Images.Media.DATA };
String mselection = null;
String[] mselectionArgs = null;
String msortOrder ="date_added DESC";
Cursor mcursor = managedQuery(contenturi, mprojection, mselection, mselectionArgs, msortOrder);
当我检查它说 mcursor 为空时,我尝试将 uri 更改为外部存储也尝试没有排序顺序。但它仍然返回null。请帮忙