commit | author | age
|
0d7d16
|
1 |
package net.jacekk.bridge.android; |
JK |
2 |
|
|
3 |
import android.app.Activity; |
|
4 |
import android.content.pm.PackageManager; |
|
5 |
import android.os.Bundle; |
|
6 |
import android.widget.TextView; |
|
7 |
|
|
8 |
import net.jacekk.bridge.R; |
|
9 |
|
|
10 |
public class AboutActivity extends Activity { |
|
11 |
@Override |
|
12 |
protected void onCreate(Bundle savedInstanceState) { |
|
13 |
super.onCreate(savedInstanceState); |
|
14 |
setContentView(R.layout.about); |
|
15 |
|
|
16 |
InitializeApp(); |
|
17 |
} |
|
18 |
|
|
19 |
protected void InitializeApp() { |
|
20 |
final TextView version = (TextView)findViewById(R.id.about_version); |
|
21 |
try { |
|
22 |
version.setText(getPackageManager().getPackageInfo(getPackageName(), 0).versionName); |
|
23 |
} catch (PackageManager.NameNotFoundException e) { |
|
24 |
e.printStackTrace(); |
|
25 |
} |
|
26 |
} |
|
27 |
} |