WittyGitty247 / auto-update-apk-client

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

New Feature: AfterUpdate() Method #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please add a method for running a block of code after the update, there are 
numerous ways to implement.  To be honest the only problem I see is 
implementation.  In my library I use an event dispatcher so if it was up to me, 
i would want an event to trigger that i can input any code I want in that 
block, but I don't think thats something you could do.

Maybe something like a start and stop such as

AutoUpdateAPK.startAfterUpdate();
//do my code
AutoUpdateAPK.endAfterUpdate();

There is probably a better way, but I can't think of it.

The reason I would want to do this, is so possibly I could add a dialouge popup 
after the update that advises users of the changes (release notes).

Original issue reported on code.google.com by bric...@gmail.com on 15 May 2012 at 1:01

GoogleCodeExporter commented 9 years ago
I don't know if it's possible to intercept an application update started from 
notification and performed by the Market. If you want to add a dialog after 
update, it might be easier to save the application version (or other info) in 
saved preferences and pop a dialog when this saved version is not equal to the 
current one (which means application has changed).

Original comment by lenik.terenin on 13 Jun 2012 at 6:01