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

DummyIdFor Admob Implementation

How to change searchview property to change searchview design