Good morning.
So, written a little app that I want to be able to update itself. In short, I send it a UDP command, it downloads its updates (all files from an FTP server, which include mp4 files, img files etc. If it finds an APK file on the FTP server it pulls that down also. I can then trigger a different UDP command to tell it to update, when I'm ready!
Each time I get an error about not being able to parse the package. I thought perhaps because it was trying to install a newer copy of itself that I was getting the error, but even when I tell it to download and install another APK (for a small utility) it does the same thing.
Now, if I use File Command to access the FTP server, pull the files down, they both install without a glitch.
All the permissions are enabled and I'm pulling the files down into the SafeDir, and using the FileProvider method from Erels tutorials etc.
I just can't get it to work, and I really wanted to role this out on a some little tablets tomorrow for a project I'm working on.
Any and all ideas greatly received!
So, written a little app that I want to be able to update itself. In short, I send it a UDP command, it downloads its updates (all files from an FTP server, which include mp4 files, img files etc. If it finds an APK file on the FTP server it pulls that down also. I can then trigger a different UDP command to tell it to update, when I'm ready!
Each time I get an error about not being able to parse the package. I thought perhaps because it was trying to install a newer copy of itself that I was getting the error, but even when I tell it to download and install another APK (for a small utility) it does the same thing.
Now, if I use File Command to access the FTP server, pull the files down, they both install without a glitch.
All the permissions are enabled and I'm pulling the files down into the SafeDir, and using the FileProvider method from Erels tutorials etc.
I just can't get it to work, and I really wanted to role this out on a some little tablets tomorrow for a project I'm working on.
Any and all ideas greatly received!