I coded an app and I am trying to download a apk from my webspace now. I googled the whole day now and everything I found was for Java I think, but I need C#.
This is what I found (not only this but it's an example): Downloading APK from server and installing it to device (but it's not working I don't know why).
But I have some problems with the code. I can't use the setRequestMethod
or getinputstream
etc.
Then I tried out this because it seemed to be much easier:
WebClient webClient = new WebClient();
Uri newUri = new Uri("http://mywebspace.bplaced.net/AppDownload.apk");
webClient.DownloadFile(newUri,Path.Combine(Android.OS.Environment.DirectoryDownloads, "AppDownload.apk"));
This is also not working. I'm getting the message "parts of the path not found" (kinda like this, my Visual Studio isn't in English). Doesn't matter what I enter as my path.