Back to project page MrParkingNavigator.
The source code is released under:
MIT License
If you think the Android project MrParkingNavigator 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 ru.mail.parking.ui; // www .j av a2s. c o m import android.app.Activity; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Bundle; import android.view.View; import android.widget.TextView; import ru.mail.parking.R; public class AboutActivity extends Activity { public void onCreate(Bundle state) { super.onCreate(state); setContentView(R.layout.about); try { PackageInfo info = getPackageManager().getPackageInfo(getPackageName(), 0); ((TextView)findViewById(R.id.version)) .setText(getString(R.string.about_version, info.versionName + " (" + getString(R.string.build_date) + ")")); } catch (PackageManager.NameNotFoundException e) { findViewById(R.id.version).setVisibility(View.GONE); } } }