Back to project page PlanningPokerPlusPlus.
The source code is released under:
Planning Poker++ for Android, copyright (c) 2011-2014 Richard Everett No specific license, but please don't rip off this codebase for use in your own similar app.
If you think the Android project PlanningPokerPlusPlus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// Planning Poker++ for Android, copyright (c) Richard Everett 2012 // Full source available on GitHub at http://richev.github.com/PlanningPokerPlusPlus /* w ww . j a v a 2s . c o m*/ package com.richev.planningpokerplusplus; import com.richev.planningpokerplusplus.R; import android.os.Bundle; import android.text.util.Linkify; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.app.Activity; import android.content.pm.PackageManager.NameNotFoundException; /** * An about dialog for the app * * @author Rich * */ public class AboutActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); linkifyTextView(R.id.feedback, Linkify.EMAIL_ADDRESSES); linkifyTextView(R.id.planningPoker, Linkify.WEB_URLS); linkifyTextView(R.id.sourceCode, Linkify.WEB_URLS); linkifyTextView(R.id.iconCredits, Linkify.WEB_URLS); this.setTitle(this.getTitle() + " v" + getVersionName()); final Button button = (Button)findViewById(R.id.closeButton); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { finish(); } }); } private void linkifyTextView(int textViewId, int mask) { TextView textView = (TextView)findViewById(textViewId); Linkify.addLinks(textView, mask); } private String getVersionName() { String versionName = ""; try { versionName = this.getPackageManager().getPackageInfo( getApplicationInfo().packageName, 0).versionName; } catch (NameNotFoundException ex) { // Required otherwise the compiler complains } return versionName; } }