I am trying to test-download a file on android but it fails. In the code, I am first opening a stream from a URL object:
import android.util.Log; import java.io.