0
獲取僅.pptx(MS-powerpoint)文件我試圖使用下面的代碼,但它向我展示了選擇中的所有文件。我只想要文件選擇器manu只顯示.pptx(Powerpoint)文件。如何通過Intent.ACTION_GET_CONTENT
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("application/pptx");
startActivityForResult(intent, PICK_DOC_REQUEST_CODE);
一個幫助,將不勝感激!
下面的鏈接是明確的疑問請參閱鏈接 [http://stackoverflow.com/questions/37002320/unable-to-pick-files-like-pdf-doc-ppt-in-marshamallow-file-chooser] (http://stackoverflow.com/questions/37002320/unable-to-pick-files-like-pdf-doc-ppt-in-marshamallow-file-chooser) – Vadivel
請嘗試下面的鏈接以獲得確切的文件格式,[http: //stackoverflow.com/questions/24304464/android-get-file-path-of-a-selected-pdf-doc-ppt-or-xls-in-my-app?rq=1](http://stackoverflow .com/questions/24304464/android-get-file-path-of-a-selected-pdf-doc-ppt-or-xls-in-my-app?rq = 1) – Vadivel
@Vadivel我已經試過了!感謝您的幫助。 –