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; /* w ww .j av a 2s. co m*/ import mil.nga.giat.asam.util.AsamConstants; import android.os.Bundle; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.ActionBarActivity; import android.view.MenuItem; import android.view.View; public class AsamReportActivity extends ActionBarActivity { private AsamReportFragment mAsamReportFragment; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.asam_report); getSupportActionBar().setDisplayHomeAsUpEnabled(true); mAsamReportFragment = new AsamReportFragment(); Bundle args = new Bundle(); args.putSerializable(AsamConstants.ASAM_KEY, getIntent().getSerializableExtra(AsamConstants.ASAM_KEY)); mAsamReportFragment.setArguments(args); FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); fragmentTransaction.replace(R.id.asam_report_asam_report_fragment, mAsamReportFragment); fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); fragmentTransaction.commit(); } public void mapAsamLocation(View view) { mAsamReportFragment.mapAsamLocation(view); } @Override public boolean onOptionsItemSelected(MenuItem item) { int itemId = item.getItemId(); if (itemId == android.R.id.home) { finish(); return true; } return super.onOptionsItemSelected(item); } }