comparison src/com/five_ten_sg/connectbot/WizardActivity.java @ 256:29a431920007

help shows full version info
author Carl Byington <carl@five-ten-sg.com>
date Mon, 14 Jul 2014 14:11:09 -0700
parents 0ce5cc452d02
children 071eccdff8ea
comparison
equal deleted inserted replaced
255:67f9a819157e 256:29a431920007
46 setContentView(R.layout.act_wizard); 46 setContentView(R.layout.act_wizard);
47 this.flipper = (ViewFlipper) findViewById(R.id.wizard_flipper); 47 this.flipper = (ViewFlipper) findViewById(R.id.wizard_flipper);
48 // inflate the layout for EULA step 48 // inflate the layout for EULA step
49 LayoutInflater inflater = LayoutInflater.from(this); 49 LayoutInflater inflater = LayoutInflater.from(this);
50 View helpView = inflater.inflate(R.layout.wiz_eula, this.flipper, false); 50 View helpView = inflater.inflate(R.layout.wiz_eula, this.flipper, false);
51 TextView appVersionView = (TextView) helpView.findViewById(R.id.app_version);
52
53 // get package version
54 try {
55 appVersionView.setText(getPackageManager().getPackageInfo(getPackageName(), 0).versionName);
56 }
57 catch (NameNotFoundException e) {
58 Log.e(TAG, "Problem retrieving application version", e);
59 }
60 51
61 this.flipper.addView(helpView); 52 this.flipper.addView(helpView);
62 // Add a view for each help topic we want the user to see. 53 // Add a view for each help topic we want the user to see.
63 String[] topics = getResources().getStringArray(R.array.list_wizard_topics); 54 String[] topics = getResources().getStringArray(R.array.list_wizard_topics);
64 55