Detect Android app version

Detect Android app version
0

#1

How can I detect the versionCode and versionName in my Android app during runtime?