Hi all,
Please help me out on this one :
I "distribute" my apk-file while developing through Dropbox to 2 or 3 of my own devices. I want the earlier installed app to check if there has been a newer version apk-file in the Dropbox.
I don't want the apk-file to be named including the version number, but just always the same same, like "myapp.apk" and I also do not want to use a separate textfile with the new version number in there, even though such a file would only contain a few bytes.
The "old" version number is of course already known by the "old" app, how can I check the new apk's version number before it gets installed?
For now, I just check the date of "myapp.apk" and see if it is newer than the datafile the app is using. If so, the new apk will be installed. This works, but is not correct, because the date of the apk will be changed by Dropbox (or DropSync that I also use to sync) to the sync-date and will not reflect the date the apk was made.
Please help me out on this one :
I "distribute" my apk-file while developing through Dropbox to 2 or 3 of my own devices. I want the earlier installed app to check if there has been a newer version apk-file in the Dropbox.
I don't want the apk-file to be named including the version number, but just always the same same, like "myapp.apk" and I also do not want to use a separate textfile with the new version number in there, even though such a file would only contain a few bytes.
The "old" version number is of course already known by the "old" app, how can I check the new apk's version number before it gets installed?
For now, I just check the date of "myapp.apk" and see if it is newer than the datafile the app is using. If so, the new apk will be installed. This works, but is not correct, because the date of the apk will be changed by Dropbox (or DropSync that I also use to sync) to the sync-date and will not reflect the date the apk was made.