You should not use strings to hold binary data. You should use a bytes array.
Strings cannot hold all the possible values. Strings are much more complicated as they hold Unicode code points.
I'm trying to download an apk from a website, and once downloaded start the install to allow the user to update the app.
I tried just launching the browser to the URL, and that sorta works, the apk gets downloaded, but I'm not sure if the download would always be in the same place. I can't be sure of the name necessarily, and I don't know how the app would know when the browser had finished. So I thought I should try and download it myself (so to speak)