I may be very bad at this so I appreciate your patience, but for the life of me I can not figure out how to have a file in my app, in this case a .pdf, and let the user download the file to their phone via a button click. Help please?
If you properly checked and requested runtime permissions for external in your code and your target SDK is 23 and higher in manifest, this is the code you need to copy the file from assets to a folder named Download in the default external:
If you properly checked and requested runtime permissions for external in your code and your target SDK is 23 and higher in manifest, this is the code you need to copy the file from assets to a folder named Download in the default external:
Problem with this path is that no regular user will ever find the file from there. Best place to save this file would be Download folder in DirRootExternal.