Android Question [Solved] Download folder and APK >33, an unsolvable problem? NO, THIS IS THE SOLUTION

BlueVision

Active Member
Licensed User
Longtime User
I know many people won't be able to hear it anymore, but how do I get a file in the download folder under APK34? Before the shitstorm starts, please finish reading.

1. I can't set the app to maxAPK29 in the manifest. Outdated Apps with this maxAPK level cannot be installed on an APK33+ device (Samsung A55).
2. The file I need is not generated by my app. Then I could park the file somewhere in another directory to which I also have access. It comes to the device via a website download. Question: Where does this file end up automatically?
3. The app is not intended for release in the Playstore.

After spending the whole afternoon searching the forum for a solution to my problem, I am more than confused. Somehow everything is going round in circles.

What options do I have to at least read the downloaded file and then somehow utilise it further? Which way works? Ideally, this file should also be deleted from the download directory after the data has been integrated. Clean Desk. That would make sense. But for that I would even need write authorisation in the download folder.

Can my app somehow redirect a download so that it doesn't end up in the download directory or does anyone know a practical procedure?

Cheers BV
 
Solution

agraham

Expert
Licensed User
Longtime User
Upvote 0
Solution

BlueVision

Active Member
Licensed User
Longtime User
After I've puzzled everything together and integrated it into my app:

This solution clearly needs more attention here in the forum. It is far too hidden.

You saved my day with this. Thank you very much.
 
Upvote 0

wes58

Active Member
Licensed User
Longtime User
After I've puzzled everything together and integrated it into my app:

This solution clearly needs more attention here in the forum. It is far too hidden.

You saved my day with this. Thank you very much.
If your app is only intended for your use you may have a look at this application https://github.com/zacharee/InstallWithOptions
When I couldn't install an old application because of a requirement for minimum SDK level I came across this application. It could do it and can do much more.
I think it is worth looking at.
 
Upvote 0

BlueVision

Active Member
Licensed User
Longtime User
Update:
This solution also works on an SDK34 smartphone, but only if you limit MaxSDK to 32 in the manifest. As of SDK33, this solution will no longer work. At least the desired functionality can still be generated on an SDK34 smartphone without the entire app being recognised as obsolete and no longer being installable at all.
 
Upvote 0
Top