How to open the gallery using the file path in android -


i have designed 2 buttons.one button selecting file , button open selected file.i have selected file correctly , file path retrieved.but cant open particular file directly file path.any 1 have tried

     intent intent = new intent(intent.action_get_content);                 uri uri = uri.parse(environment.getexternalstoragedirectory().getpath()                         + selectedfilepath);                 intent.setdataandtype(uri, "text/csv");                 startactivity(intent.createchooser(intent, "open folder")); 

first, action_get_content does not accept uri input.

second, action_get_content has nothing opening file. presumably, should using action_view.

third, value passing uri.parse() not string form of uri.

also, expect few android devices have action_view activity text/csv content.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -