android check update version and show an update app message

First check App live version and then check current version. if not same update message will be thrown. This code should be pasted on onCreate in Activity String latestVersion = “”; String currentVersion = “”; VersionChecker versionChecker = new VersionChecker(); try { latestVersion = versionChecker.execute().get(); Toast.makeText(getBaseContext(), latestVersion , Toast.LENGTH_SHORT).show(); } catch (InterruptedException | ExecutionException e)…

Android Add Animations Left Right Top Bottom Translation.

Animation animSlideDown = AnimationUtils.loadAnimation(getActivity(), R.anim.bottom_to_top); yourLayout.startAnimation(animSlideDown); Animations. Just create an animation file inside anim folder under the res. app->res->anim bottom_to_top.xml <?xml version=”1.0″ encoding=”utf-8″?><set xmlns:android=”http://schemas.android.com/apk/res/android”> <translate…