There is a server where the pdf files are located, the task is for the application to display a list of these files in activation, when the click starts the download.

Please tell me the algorithm of action

    1 answer 1

    Algorithm of actions:

    1. Write API for the server that will give the list of files with a link by which they can be downloaded.
    2. From the application, access this API (for example, using OkHttp ) and display the resulting list in ListView/RecyclerView .
    3. When you click on a list item, start downloading the corresponding file (using the same OkHttp or, for example, DownloadManager ).
    4. ...
    5. Profit