我想從圖庫中挑選圖像,但我希望圖庫僅顯示圖像。我創建了我的意圖就是這樣,但我仍然看到一些設備上圖庫僅挑選圖像
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setType("image/*");
編輯視頻:
爲我打造這樣的意圖奇巧設備。
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
這個鏈接是有關加載位圖從文件到一個GridView – AdrianoCelentano 2014-09-19 11:36:33