android - How to select any file from recent and upload it on server? -


i wanna upload files on server android app. user can pick file recent image, doc or pdf in android app , upload on server.

so please tell me how open recent activity , select file , how upload on server.

please me important me.

you can use */* open files in android.

intent intent = new intent();     intent.settype("*/*"); intent.addcategory(intent.category_openable); intent.setaction(intent.action_get_content); startactivityforresult(intent.createchooser(intent, getstring(r.string.perform_action_with)), attachmentchoice); 

note:where attachmentchoice constant.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -