I would like to get the App Version in EditTextPreference for my app.
App Name:
--App Name --
Version
1.0
for example:
it should reflect the version name in build.gradle(app)
I would like to get the App Version in EditTextPreference for my app.
App Name:
--App Name --
Version
1.0
for example:
it should reflect the version name in build.gradle(app)
Copyright © 2021 Jogjafile Inc.

You can try the following code to get the app version name:
The versionName variable stores the version name.
For fragments: