Back to project page fieldreporter.
The source code is released under:
Apache License
If you think the Android project fieldreporter 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 com.donnemartin.android.fieldreporter; //w w w . ja v a 2 s. co m import android.support.v4.app.Fragment; public class ReportMapActivity extends SingleFragmentActivity { /** A key for passing a report ID as a long */ public static final String EXTRA_REPORT_ID = "REPORT_ID"; @Override protected Fragment createFragment() { long reportId = getIntent().getLongExtra(EXTRA_REPORT_ID, -1); if (reportId != -1) { return ReportMapFragment.newInstance(reportId); } else { return new ReportMapFragment(); } } }