coldblue / auto-update-apk-client

Automatically exported from code.google.com/p/auto-update-apk-client
0 stars 0 forks source link

How to test auto-update apk on my application #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Not getting the notification
2.
3.

What is the expected output? What do you see instead?
To get the notification about the update.
Nothing seen.

What version of the product are you using? On what operating system?
My product current version - 2.9.3.4
ubuntu operating system

Please provide any additional information below.
I have a login page where am adding the autoupdate code as mentioned.
What should I do to get the update?

Original issue reported on code.google.com by elizabet...@gmail.com on 29 Aug 2012 at 10:59

Attachments:

GoogleCodeExporter commented 9 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
"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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Thanks a lot Lenik.

Original comment by elizabet...@gmail.com on 31 Aug 2012 at 7:20

GoogleCodeExporter commented 9 years ago
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