Closed GoogleCodeExporter closed 8 years ago
Please, refer to the issue 22 (use "Search: All issues") regarding the testing,
there are two main points:
1. use logcat to see the output, there should be the message "MD5: XXX" when
AutoUpdateAPK starts and more messages when the server is asked for update and
even more messages when the update gets retrieved.
2. temporary change the default update intervals (UPDATE_INTERVAL and
WAKEUP_INTERVAL) to a smaller values (1 minute, maybe)
Also, I would suggest to instantiate AutoUpdateAPK class not in some
rarely-used Activity, but in the Application subclass. Otherwise, if your user
does not login often enough, the AutoUpdateAPK has no chance to run.
Original comment by lenik.terenin
on 30 Aug 2012 at 2:57
Hi Lenik,
I added a function to my activity so that there is some update in my
application.
08-30 12:12:19.085: V/AutoUpdateApk(908): md5sum:
46265209c5da8718530ce9868cbba43d
I did not get any notification and the download link.
As you said earlier to instantiate AutoupdateAPK in other activity, did that as
well.
If you can help me what more changes should I follow to achieve the desired
output.
Original comment by elizabet...@gmail.com
on 30 Aug 2012 at 6:47
"md5sum:" message is not an update, this message appears when AutoUpdateAPK
class is instantiated, it calculates the md5 of your current application and
shows the result.
if you have already lowered the UPDATE_INTERVAL and WAKEUP_INTERVAL and still
could not see any updates, this might be because your login activity has
finished before any update happens.
if you are totally puzzled about what should happen, please, download, compile
and run sample application, so you may see the correct logcat output when
running it.
Original comment by lenik.terenin
on 30 Aug 2012 at 10:15
I changed the UPDATE_INTERVAL & WAKEUP_INTERVAL for 1 minute.
It was showing in Logcat that no update found i.e autoupdate_no_update
In the end "update check finished in 772ms"
I tried to import and run your sample application then its giving me this
message
" No projects are found to import"
Original comment by elizabet...@gmail.com
on 30 Aug 2012 at 10:42
well, so far so good.
have you actually uploaded the .apk to the server, which has the same package
name as your application (com.vocare)? if you don't upload anything, the server
cannot serve the update and replies with "no update".
Original comment by lenik.terenin
on 30 Aug 2012 at 11:51
Thanks a lot Lenik.
Original comment by elizabet...@gmail.com
on 31 Aug 2012 at 7:20
i'm closing this issue.
if you have other questions, please reopen this or create another ticket.
Original comment by lenik.terenin
on 31 Aug 2012 at 10:47
Original issue reported on code.google.com by
elizabet...@gmail.com
on 29 Aug 2012 at 10:59Attachments: