Skip to content Skip to sidebar Skip to footer

Unable To Download .apk File From Remote Server In Android

I want to download .apk file from my web server, but I'm gettingjava.io.FileNotFoundException: http://xxx/mygames/myapks/demo.apk all the time. But the file is present in this URL

Solution 1:

I think your android sdk version is 4.x, maybe you can try to delete the line code c.setDoOutput(true).

Solution 2:

It is not your code fault. It is server fault. just try to hit URL address from Browser.

Post a Comment for "Unable To Download .apk File From Remote Server In Android"