0
我捕獲的圖像和其他人顯示相當不錯,但當我點擊三星Galaxy S4,它沒有顯示在ReyclerView,但它的持有佔位符。我想顯示我的預覽點擊圖片..我做了什麼,它在下面。三星Galaxy S4中的相機問題
if (requestCode == CAMERA_REQUEST) {
try {
if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK && null != data) {
String[] projection = {MediaStore.Images.Media.DATA};
Cursor cursor = managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
projection, null, null, null);
int column_index_data = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToLast();
img_Decodable_Str = cursor.getString(column_index_data);
stream_imagePath.add(img_Decodable_Str);
CreateStreamAdapter createStreamAdapter = new CreateStreamAdapter(getApplicationContext(), stream_imagePath);
recycler_view.setAdapter(createStreamAdapter);
createStreamAdapter.notifyDataSetChanged();
dialog.dismiss();
}
} catch (Exception e) {
e.printStackTrace();
}
}
Thnxx爲您的答覆,但讓我知道什麼是mApp.getPreference –
這就是我曾經用於保存圖像到外部磁盤的圖像名稱作爲用戶名稱 –