Download and install apk files from app in Android

For the purposes of simple download of file from app, I wrote the following function:

Syntax is very simple – just provide URL and package name, how to save.