0
我想從光標獲取圖像。我使用Mediastor.image.data 這裏是我的代碼如何從android中的光標獲取圖像?
String los=getArguments().getString(ARG_SECTION_NUMBER1);
Uri mImageUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
final String[] columns = { MediaStore.Images.Media.DATA, MediaStore.Images.Media.DATE_ADDED};
ContentResolver mContentResolver = rootView.getContext().getContentResolver();
Cursor mCursor = mContentResolver.query(mImageUri, columns, MediaStore.Images.Media.DATA + " like ? ",new String[] {los}, null);