AppUpdate
AppUpdate copied to clipboard
No latest version available to download
How I can show Toast
message that "Currently no new latest version available to download" using this great library? This will happen when user click Button
to check for new update. Is there any method for it?
you can show toast in callback method onError
or onResult
in UpdateResultCallback
, when server has no new latest version available to download ,you can check onResult's param,compare version_code to hint toast message,besides you can check onError's params,we'll get an exception named UpdateException
if some exception happen,UpdateConst
has four status for checking update.
Thank You!
I'm unable to do it, can you implement it in your sample code? Thanks in advance
@ahmerafzal1 I write a test method, and don't know if it can solve your problem,you can see MainActivity.
for contacting me timely, you can send me email (email: [email protected])