package net.jacekk.bridge.android;
|
|
import android.app.Activity;
|
import android.content.pm.PackageManager;
|
import android.os.Bundle;
|
import android.widget.TextView;
|
|
import net.jacekk.bridge.R;
|
|
public class AboutActivity extends Activity {
|
@Override
|
protected void onCreate(Bundle savedInstanceState) {
|
super.onCreate(savedInstanceState);
|
setContentView(R.layout.about);
|
|
InitializeApp();
|
}
|
|
protected void InitializeApp() {
|
final TextView version = (TextView)findViewById(R.id.about_version);
|
try {
|
version.setText(getPackageManager().getPackageInfo(getPackageName(), 0).versionName);
|
} catch (PackageManager.NameNotFoundException e) {
|
e.printStackTrace();
|
}
|
}
|
}
|