Forum Xamarin.Forms

Path to be used to download file in Android app

fernandopfernandop USMember ✭✭
edited May 2015 in Xamarin.Forms

Hi,
I have an app in Xamarin.Forms that downloads the apk file to update itself. It downloads the file using WebClient. When the file is downloaded it saves the file to local storage. Currently I set destination to "./storage/sdcard1/download/filedownloaded.apk" because I am having issues using special folders, I tried using System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), that is where I have the local SQLite database but I get an error when trying to install the download package: "There was a problem parsing the package" (using Intent). Also I tried using Android.OS.Environment.DirectoryDownloads but it says that Download path was not found.
Note: the device doesn't have external storage just internal one.

Please, tell me what is the right folder to manage this.

thanks,

Posts

Sign In or Register to comment.