使用KitKat中提供的SAF,MediaScanner不會調用保存到設備內部或外部存儲點的文件。因此,我必須根據返回的URI確定是否應該嘗試運行MediaScanner。 // The SAF uses content URI to pass meta about the file. The following host is used for internal storage.
if (mE
使用新的Storage Access Framework作爲圖像的內容選擇器,如何將生成的文件作爲位圖獲取?如果內容位於手機本地,則可以輕鬆完成,如下面的代碼所示。但是,如果內容來自Picasa或Google Drive或Box等地方,則無法訪問內容,因爲BitmapFactory.decodeStream(InputStream)始終返回false。有解決方案嗎? // launch the n