Back to project page anti-piracy-android-app.
The source code is released under:
Apache License
If you think the Android project anti-piracy-android-app 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 mil.nga.giat.asam; //from ww w . j av a 2 s .c o m import mil.nga.giat.asam.util.AsamConstants; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.MenuItem; public class LegalDetailsActivity extends ActionBarActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.legal_details); getSupportActionBar().setDisplayHomeAsUpEnabled(true); Bundle extras = getIntent().getExtras(); if (extras != null) { int titleId = extras.getInt(AsamConstants.LEGAL_DETAILS_TITLE_KEY); getSupportActionBar().setTitle(titleId); } } @Override public boolean onOptionsItemSelected(MenuItem item) { int itemId = item.getItemId(); if (itemId == android.R.id.home) { finish(); return true; } return super.onOptionsItemSelected(item); } }