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?

General Knowledge