I'm trying to setup an updated for my app at work. I have set it up to check for the version on a file and then try to install the new APK if the version don't match. I'm trying to follow the guide found here but it doesn't seem to work with SMB paths.
The first issue I have is that for some reason, I seem to not have the Uri.Parse() available. second issue, it seems to be asking for a string, I was wondering if there is a way to make it work with SMBfiles.
string path = @"smb://Domain/Share/IT/Androids/Picking.apk";
var auth = new NtlmPasswordAuthentication("Domain", "Username", "Pwd");
SmbFile file = new SmbFile(path, auth);
If that matters, the Uri seems to come from system. Is it another Uri from somewhere else I should be using?
Intent PromptInstall = new Intent(Intent.ActionView).SetDataAndType(Uri.Parse(file), "application/vnd.android.package-archive");'
startActivity(promptInstall);
is what I havebut I get an error that Uri.Parse is inaccessible with its protection level. Furthermore, I don't think Uri.Parse will work with a smb path rather than a file path.