I'm trying to make my website sending Android APK
files with some pre-validation so the user just clicks the link and the application starts to install on the device.
The point is, i'm using the thin
webserver, send_file path, :type => 'application/vnd.android.package-archive', :disposition => "attachment"
, set the header headers['Content-Type'] = 'application/vnd.android.package-archive'
and checked the Allow untrusted sources box at the device' settings. But the apk file is just downloaded instead of being installed.
UPD: The following trouble issues on Android 4 only. My Galaxy S with Android 2.3.6 works fine.
What am i doing wrong?
Thanks!