File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
java/com/appliedrec/credentials/app Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com .appliedrec .credentials .app ;
2
2
3
+ import android .content .pm .PackageManager ;
3
4
import android .os .Bundle ;
5
+ import android .view .Menu ;
4
6
5
7
import androidx .appcompat .app .AppCompatActivity ;
6
8
9
+ import com .appliedrec .verid .core .VerID ;
10
+
7
11
public class AboutActivity extends AppCompatActivity {
8
12
9
13
@ Override
10
14
protected void onCreate (Bundle savedInstanceState ) {
11
15
super .onCreate (savedInstanceState );
12
16
setContentView (R .layout .activity_about );
13
17
}
18
+
19
+ @ Override
20
+ public boolean onCreateOptionsMenu (Menu menu ) {
21
+ try {
22
+ String appVersion = "App version: " +getPackageManager ().getPackageInfo (getPackageName (), 0 ).versionName ;
23
+ menu .add (appVersion );
24
+ } catch (PackageManager .NameNotFoundException e ) {
25
+ e .printStackTrace ();
26
+ }
27
+ String veridVersion = "Ver-ID SDK version: " +VerID .getVersion ();
28
+ menu .add (veridVersion );
29
+ return true ;
30
+ }
14
31
}
Original file line number Diff line number Diff line change 6
6
tools : context =" .AboutActivity" >
7
7
8
8
<TextView
9
+ android : id =" @+id/textView"
9
10
android : layout_width =" match_parent"
10
11
android : layout_height =" wrap_content"
11
- android : text =" @string/about_text"
12
12
android : padding =" 16dp"
13
+ android : text =" @string/about_text"
13
14
android : textAppearance =" @style/TextAppearance.AppCompat.Body1" />
14
15
</ScrollView >
You can’t perform that action at this time.
0 commit comments