Tuesday, July 24, 2018

Output android versionname as string

I have my versionCode and versionName set in my manifest.xml



android:versionCode="2"
android:versionName="Alpha 1.2"


But how do I output this as a string so the user can see what version of the app they have?

In my "about" fragment I attempted to use:



android:text="?android:attr/versionName"


but this didnt seem to work. It literally put "?android:attr/versionName" as the output string.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...