Back to project page no-cloud-share.
The source code is released under:
GNU General Public License
If you think the Android project no-cloud-share 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 de.ub0r.android.nocloudshare; /*from w w w . j a v a 2s . c om*/ import android.app.Activity; import android.os.Bundle; import android.view.MenuItem; import android.widget.TextView; public class AboutActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_about); //noinspection ConstantConditions getActionBar().setDisplayHomeAsUpEnabled(true); setTitle(getString(R.string.title_activity_about, getString(R.string.app_name))); TextView versionView = (TextView) findViewById(R.id.version); versionView.setText("v" + BuildConfig.VERSION_NAME); } @Override public boolean onOptionsItemSelected(final MenuItem item) { switch (item.getItemId()) { case android.R.id.home: finish(); return true; default: return super.onOptionsItemSelected(item); } } }