Android Intent使用舉例

一、篩選本地文件,經過uri獲取文件的路徑 /** * 選擇本地文件,得到文件的 uri 。 * 經過setType能夠設置文件類型:好比篩選音視頻文件、圖片等等 */ Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("*/*"); startActivityForResult(Intent.createC
相關文章
相關標籤/搜索