Back to project page FRCAndroidWidget.
The source code is released under:
GNU General Public License
If you think the Android project FRCAndroidWidget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * French Revolutionary Calendar Android Widget * Copyright (C) 2011 - 2014 Carmen Alvarez * //from ww w. j a v a 2 s . c o m * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */ package ca.rmen.android.frccommon; import android.app.Activity; import android.content.pm.PackageInfo; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.TextView; import ca.rmen.android.frcwidget.render.Font; import ca.rmen.android.frenchcalendar.R; public class FRCAboutActivity extends Activity { // NO_UCD (use default) private static final String TAG = FRCAboutActivity.class.getSimpleName(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); View view = findViewById(R.id.aboutview); Font.applyFont(this, view); TextView tvAppVersion = (TextView) view.findViewById(R.id.tv_app_version); PackageInfo pInfo; try { pInfo = getPackageManager().getPackageInfo(getPackageName(), 0); tvAppVersion.setText(pInfo.versionName); } catch (NameNotFoundException e) { Log.e(TAG, e.getMessage(), e); } } }