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 .j av a 2s. c om*/ import android.content.Context; import android.location.Location; class LastLocationLoader extends DataLoader<Location> { private long mReportId; public LastLocationLoader(Context context, long reportId) { super(context); mReportId = reportId; } @Override public Location loadInBackground() { return ReportManager.get(getContext()).getLastLocationForReport(mReportId); } }