Pick any kind file via an Intent on Android -



Pick any kind file via an Intent on Android -

i start intentchooser apps can homecoming kind of file

currently utilize (which copied android email source code file attachment)

intent intent = new intent(intent.action_get_content); intent.addcategory(intent.category_openable); intent.settype("*/*"); intent = intent.createchooser(intent, "file"); startactivityforresult(i, choose_file_requestcode);

but shows "gallery" , "music player" on galaxy s2. there file explorer on device , appear in list. photographic camera app show in list, user can shoot image , send through app. if install astro file manager respond intent, too. customers galaxy sii owners , don't want forcefulness them install astro file manager given have basic sufficient file manager.

any thought of how accomplish ? pretty sure saw default file manager appear in such menu pick file, can't remember in app.

thanks !

not photographic camera other files..

in device have es file explorer installed , thing works in case..

intent intent = new intent(intent.action_get_content); intent.settype("file/*"); startactivityforresult(intent, pickfile_request_code);

android file android-intent intentfilter

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -