The AndroidManifest.xml contains the version name of the application, something like
android:versionName="1.0"
Now the question – is it somehow possible to access this version name in the source code, so that I can display it for example in an About Dialog?
If you use ADT and Eclipse:
If you use Gradle, there is an easier way, since it puts the data into BuildConfig for you: