Back to project page VirginMobileMinutesChecker.
The source code is released under:
Copyright 2011 Jay Goel. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Red...
If you think the Android project VirginMobileMinutesChecker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.baker.vm.ui; /* ww w . ja v a 2 s . c om*/ import android.app.Activity; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Bundle; import android.text.method.LinkMovementMethod; import android.util.Log; import android.widget.TextView; import com.jaygoel.virginminuteschecker.R; public final class AboutActivity extends Activity { @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); String version = ""; try { version = getPackageManager().getPackageInfo(getPackageName(), 0).versionName; version = getString(R.string.version, version); } catch (NameNotFoundException e) { Log.e(getClass().getSimpleName().toUpperCase(), "Failed to acquire version."); } ((TextView) findViewById(R.id.about_version)).setText(version); TextView footer = (TextView) findViewById(R.id.about_footer); footer.setLinksClickable(true); footer.setMovementMethod(LinkMovementMethod.getInstance()); } }