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 w w .j a v a 2 s. c om package com.richev.planningpokerplusplus; import com.richev.planningpokerplusplus.R; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; /** * An activity that features a menu * * @author Rich */ public class MenuedActivity extends Activity { @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.mainmenu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.about: showAboutDialog(); return true; case R.id.settings: showSettings(); return true; case R.id.share: initiateShare(); return true; default: return super.onOptionsItemSelected(item); } } protected void showAboutDialog() { Intent aboutActivity = new Intent(getBaseContext(), AboutActivity.class); startActivity(aboutActivity); } private void showSettings() { Intent settingsActivity = new Intent(getBaseContext(), SettingsActivity.class); startActivity(settingsActivity); } private void initiateShare() { Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("text/plain"); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, getResources().getString(R.string.share_subject)); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, getResources().getString(R.string.share_body)); startActivity(emailIntent); } }