use of com.ushahidi.android.app.api.CategoriesApi in project Ushahidi_Android by ushahidi.
the class FetchReports method executeTask.
@Override
protected void executeTask(Intent intent) {
new Util().log("executeTask() executing this task");
clearCachedData();
ApiUtils.updateDomain(this);
// fetch categories
new CategoriesApi().getCategoriesList();
// fetch reports
status = new ReportsApi().saveReports(this) ? 0 : 99;
statusIntent.putExtra("status", status);
sendBroadcast(statusIntent);
}
Aggregations