How to get version name and version code in android code?

get version name : -

String versionName = BuildConfig.VERSION_NAME;

get version code : -

int versionCode = BuildConfig.VERSION_CODE;

Comments

Popular posts from this blog

How to Fix ‘This file name is too long’ Error?

How to change searchview property to change searchview design

Library To Load Html Content In Android TextView in Android